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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Simple Dax to computer Percentage count of group totals

 

I have this report I have simplified.

 

https://1drv.ms/u/s!AlMdRxAveLesgcJA0INgUwT-qNWAyw?e=vS6Qb8

 

This is supoosed to be simple.  Not sure why my dax isnt working.

 

I want to be create a Dax for "Percentage of each purpose "  to be exact same as "%GT count of purpose".  I need to be able to place the selected Group in the Percent card.

 

Olajumi_0-1644805051913.png

 

 

1 ACCEPTED SOLUTION

Hi,

In a card visual, since there is no row/column context, the result will always be 100%.  In the visual, the measure should be:

Percentage of each purpose = 
divide([*Count of purpose],  calculate([*Count of purpose], ALLSELECTED(q10[Purpose]),ALL('Group bridge dataset'[Group])))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Is this the result you are expecting? Download the PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

 

 

Thanks for your prompt response.

 

No, it doesnt work.  Notice that your solution only works when you select just one item on filter group.  It should also work with multiple selection.  And the summary card should cross filter toi your selection.  

 

Olajumi_0-1644810685425.png

 

Hi,

Please tell me the exact figure which you expect to see in the card visual and the matrix visual when you select 2 items in the slicer.  Please give a clear explanation.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

 

The column %GT Count of purpose gives the right result.

 

Column (measure) Percent of each purpose should be the same as column  %GT Count of purpose.  My intention is  to drop %GT Count of purpose  and work with Percent of each purpose (using a measure calculation) as the measure will be used for other visuals like the card.

 

Hope that clarifies it.

 

Hi,

In a card visual, since there is no row/column context, the result will always be 100%.  In the visual, the measure should be:

Percentage of each purpose = 
divide([*Count of purpose],  calculate([*Count of purpose], ALLSELECTED(q10[Purpose]),ALL('Group bridge dataset'[Group])))

Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.