Comcast is seeking to harness viewing data from the set-top boxes and streaming apps used by its millions of cable-TV subscribers to create products it can license to other companies, according to people familiar with its plans. That will require organizing a vast pool of details into “dashboards” that TV networks and marketers can use to tap specific slices of data.