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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Parent Row Total Percentage - Based on Date Slicer

My current % parent row total measure works fine based on Month slicer i.e. dataset date range is for 2020 only

VAR Month = SELECTEDVALUE('Calendar'[MonthNum])
Return
DIVIDE(SUM(FreightForward[JOBCOUNT]) , CALCULATE(SUM(FreightForward[JOBCOUNT]) , ALLSELECTED(FreightForward) , 'Calendar'[MonthNum] = Month) , BLANK())

However, my dataset has been extended to previous year 2019, so the above measure does not show correct % row total when YEAR slicer is introduced. How do I modify measure to reflect correct result?

1 ACCEPTED SOLUTION
stevedep
Memorable Member
Memorable Member

Like this?

VAR Month = SELECTEDVALUE('Calendar'[MonthNum])
VAR _Year = SELECTEDVALUE('Calendar'[Year])

Return
DIVIDE(SUM(FreightForward[JOBCOUNT]) , CALCULATE(SUM(FreightForward[JOBCOUNT]) , ALLSELECTED(FreightForward) , 'Calendar'[MonthNum] = Month, 'Calendar'[Year] = _Year ) , BLANK())


Please mark as solution if so. Thumbs up for the effort are appreciated.

Kind regards, 
Steve. 

View solution in original post

2 REPLIES 2
stevedep
Memorable Member
Memorable Member

Like this?

VAR Month = SELECTEDVALUE('Calendar'[MonthNum])
VAR _Year = SELECTEDVALUE('Calendar'[Year])

Return
DIVIDE(SUM(FreightForward[JOBCOUNT]) , CALCULATE(SUM(FreightForward[JOBCOUNT]) , ALLSELECTED(FreightForward) , 'Calendar'[MonthNum] = Month, 'Calendar'[Year] = _Year ) , BLANK())


Please mark as solution if so. Thumbs up for the effort are appreciated.

Kind regards, 
Steve. 

Anonymous
Not applicable

Thank you @stevedep, that worked perfectly. Appreciate your help:)

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.