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

help with Dax to create a summary card based on rows distinct row count selected to a table


I need two Dax measures to:
1. Create a summary card "Total codes used by firm for all clients" to be the distinct count of column "Codes used by firm"
2. Create a summary card "Total number of codes used by all firms" to be the distinct count of column "potential codes that can be billed"
 
Olajumi_0-1627498218319.png

 

Rules:

The requirement is that the columns in table are distinct count of taskcodes used.   

 

The table  "report ProducerConsumerTaskCodes"  is a subset of "report ConsumerTaskCodes".

 Card "Total codes used by firm for all clients"  is from table "report ProducerConsumerTaskCodes"  

Card  "Total number of codes used by all firms"  is from table "report ConsumerTaskCodes".

 Card "Total codes used by firm for all clients"  is not expected to be equal to the sum of rows in "codes used by firm" because only unique codes aggregated.  

 

Also, 

Card "Total number of codes used by all firms" is not expected to be equal to the sum of rows in "Codes used by firm" because only unique codes are aggregated.     

 

PBIX:

https://1drv.ms/u/s!AlMdRxAveLesgcFjKD_Skl86sy5a4A?e=eUc4Jb

3 REPLIES 3
v-xulin-mstf
Community Support
Community Support

Hi @Anonymous

 

Sorry, I have no access to the link, please provide public link.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Anonymous
Not applicable

Hi @Anonymous

 

Try measure as:

Total number of codes used by all firms = 
SUMX(VALUES('Consumer'[client   name]),[*Total ConsumerTask codes grouped])
Total codes used by firm for all clients = 
SUMX(VALUES('Consumer'[client   name]),[*Total producerConsumerTask codes grouped card])

 Is this your expected output?

vxulinmstf_0-1627545207689.png

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

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.