Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
bhartsell
Frequent Visitor

Getting distinct values for multiple columns

Hi 

 

I tried looking through previous threads, but I'm not sure what exactly what I'm looking for would be called. 

 

I have a table with several columns, but I'm concerned with two of them: BundleID (a number associated with a "bundle" of files) and UserEmail. I'm trying to find out a way to count how many distinct UserEmails have downloaded distinct BundleIDs--how would I do this?

 

Thank you for your time!

2 ACCEPTED SOLUTIONS

@bhartsell

 

1. Insert a Table Visual and put in Values: BundleID and UserEmail.

2. In UserEmail select Count(Distinct).

 

 

Datas.png




Lima - Peru

View solution in original post

@bhartsell

 

If you want a visual by date, use the same solution provided by Vvelarde and just change the visual from Table to Line and clustered column chart as below.

 

Getting distinct values for multiple columns_1.jpg

 

Best Regards,

Herbert

View solution in original post

5 REPLIES 5
v-haibl-msft
Microsoft Employee
Microsoft Employee

@bhartsell

 

Please try the solution provided by ankitpatira. In case that’s not what you expected, please post back with expected output.

 

Best Regards,

Herbert

ankitpatira
Community Champion
Community Champion

@bhartsell i think all you need to do is use a visual such as column chart and drop useremail field to the axis area and drop bundleID field to the values area and under Values for the bundleID field click on dropdown icon and choose distinct count.

 

Capture.PNG

Thanks for the response!

 

I'm sorry if I wasn't clear, but I'm trying to find a measure (or series of measures) that allows me to put this in a visual by date. I need it to be non-repeating by BundleID for every UserEmail. So if the data set I'm using is the below, then the count for BundleID 1 is three (three different emails), the count for 2 is 1 (one different email), the count for three is 2 (two different emails), and the total count is six.

 

Emails.png

@bhartsell

 

If you want a visual by date, use the same solution provided by Vvelarde and just change the visual from Table to Line and clustered column chart as below.

 

Getting distinct values for multiple columns_1.jpg

 

Best Regards,

Herbert

@bhartsell

 

1. Insert a Table Visual and put in Values: BundleID and UserEmail.

2. In UserEmail select Count(Distinct).

 

 

Datas.png




Lima - Peru

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.