Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have data from a clinical trial that looks like this:
The visualistion looks like this:
As you can see it has autocalculated the total (107 events in the first example) - how do i create a measure to show this, so i can add to another visualisation for summary purposes, and also so i can sort the x axis by totals?
Thanks so much!
Soph
Solved! Go to Solution.
Hi @Anonymous
You need to create a measure that sums the counts
COUNTA ( TableName[Column1] ) + COUNTA ( TableName[Column2] ) + COUNTA ( TableName[Column3] ) ... etc..
Hi,
Use below dax measure :
Hi,
Your data is not well structued. In the Query Editor, select the first 2 columns, right click and select "Unpivot Other columns". Now create your visual and write this measure
Participants = distinctcount(Data[Participant])
Hope this helps.
Hi,
Use below dax measure :
Hi @Anonymous
You need to create a measure that sums the counts
COUNTA ( TableName[Column1] ) + COUNTA ( TableName[Column2] ) + COUNTA ( TableName[Column3] ) ... etc..
Hello how are you?
I didn't understand your question correctly.
Here's the example I created to see if it helps.
https://5pwtcn-my.sharepoint.com/:f:/g/personal/rodrigosan_5pwtcn_onmicrosoft_com/Ekk2Pvc89A9CoffLPi...
Did I solve your problem?
Please mark as solution so others can find this solution.
https://www.linkedin.com/in/rodrigosanpbi/
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |