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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MNM
Frequent Visitor

% PER ROW FROM GRAND TOTAL

Hi Everyone,

Good day! 

I am trying to get the % per row from grand total  for the difference of target and cleared. However, it seems to get the % from the total per region instead the % from grand total. Need your expertise on this please.

 

my formula :

Cleared Past Due % =
('TS Raw'[Cleared] / 'TS Raw'[PREV DAY TARGET])
 
PREV DAY TARGET =
CALCULATE('TS Raw'[Target @90%], PREVIOUSDAY('Calendar Table'[Date]))
 
Cleared =
VAR PrevDate =
    PREVIOUSDAY('Calendar Table'[Date])
VAR PrevSum =
    CALCULATE(
        'TS Raw'[Forward Aging Total Collectibles],
        'Calendar Table'[Date] = PrevDate
        )
RETURN
    IF(
        PrevSum <> 0 && 'TS Raw'[Forward Aging Total Collectibles] <> 0,
        PrevSum - 'TS Raw'[Forward Aging Total Collectibles]
    )

 

MNM_0-1678179497765.png

 

Thank you in advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@MNM , If I have measure [Cleared]  and I need % of total

 

then I need a  measure like

 

Divide([Cleared] , calculate([Cleared] , allselected())

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@MNM , If I have measure [Cleared]  and I need % of total

 

then I need a  measure like

 

Divide([Cleared] , calculate([Cleared] , allselected())

 

Percent of Total and Percent of SubTotal https://www.youtube.com/watch?v=6jTildcV2ho
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=24270s

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.