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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.