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
abeenish
New Member

Calculated Percentage Field is appearing twice

I am using a DAX Measurement to calculate the (#In program) / (# Referred).  I ge the correct % but what do I do so that the % column only appears once and to end of the table.

 

DAX:

 

% Difference = DIVIDE
CALCULATE ( COUNT ( FactClientTransactionsProgram[status] ), FactClientTransactionsProgram[status] = "In Program" ),
CALCULATE ( COUNT ( FactClientTransactionsProgram[status] ), FactClientTransactionsProgram[status] = "Referred" ))

 

 

abeenish_0-1645051498806.png

 

 

abeenish_1-1645051575868.png

 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @abeenish 

 

You can try the following methods.

Measure:

In Program Count of status = 
CALCULATE(COUNT (FactClientTransactionsProgram[status]),FactClientTransactionsProgram[status]="In Program" )
Referred Count of status = 
CALCULATE(COUNT(FactClientTransactionsProgram[status]),FactClientTransactionsProgram[status]="Referred" )
% Difference = DIVIDE([In Program Count of status],[Referred Count of status])

vzhangti_0-1645518883075.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

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

View solution in original post

2 REPLIES 2
v-zhangti
Community Support
Community Support

Hi, @abeenish 

 

You can try the following methods.

Measure:

In Program Count of status = 
CALCULATE(COUNT (FactClientTransactionsProgram[status]),FactClientTransactionsProgram[status]="In Program" )
Referred Count of status = 
CALCULATE(COUNT(FactClientTransactionsProgram[status]),FactClientTransactionsProgram[status]="Referred" )
% Difference = DIVIDE([In Program Count of status],[Referred Count of status])

vzhangti_0-1645518883075.png

Is this the output you expect?

 

Best Regards,

Community Support Team _Charlotte

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

amitchandak
Super User
Super User

@abeenish , One is use isinscope and replace count of status to % difference in grand total

 

if(not(isinscope(Table[Referral])), [% difference], [count of status])

 

 

https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/

 

or hybrid table

 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/...

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.