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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.