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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
praphull
Helper I
Helper I

count of id with respect to other column

Hi, 
My case is of unvipot column of many column.
If we choose single select value then it counts expected results, but we choose 'All" then result is lesser than expected due to distinct count. 
Here I am not able to use count function because of 2-3 times unpivot used with other column. 
Kindly help to fix it. 

1 ACCEPTED SOLUTION

Hi @v-stephen-msft ,
I got solution by some other way.
Thanks for reply.

View solution in original post

5 REPLIES 5
v-stephen-msft
Community Support
Community Support

Hi @praphull ,

 

Please provide some sample data and expected results. Note: Protect your private data.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-stephen-msft ,
I got solution by some other way.
Thanks for reply.

Hi @praphull ,

 

Thanks for your response and glad to hear that your issue was resolved.

If you can, please share your solution, more people will benefit.😊

 

 

Best Regards,

Stephen Tao

amitchandak
Super User
Super User

@praphull , You can try like

 

calculate(sumx(Values(Table[Column2]), calculate(distinctcount(Table[ID])) )

Hi @amitchandak 
No, It also gives same result as simple distinctcount.
Not getting expected result.
I need sum of count of all individuals when selected All.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.