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
Antmkjr
Post Patron
Post Patron

Change the measure total when drilled up

I have a measure 

XYZ =
VAR DaysinCurrentMonth = DAY(EOMONTH(TODAY(),0))
VAR DayofMonth = DAY(TODAY())
VAR IncrementPerDay = DIVIDE([Incremental val],DaysinCurrentMonth)
VAR x = SUM('Report'[val Last Month])+(IncrementPerDay*DayofMonth)
RETURN
IF(HASONEVALUE('Report'[LevelB]),x,BLANK())

 

 

I have a matrix visual with Level A, B,C.  At level B , the value of the measure should be same as at level A and shouldnt add up and at level A should be blank

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Antmkjr , To achieve the desired behavior where the measure XYZ shows the same value at Level B as at Level A and is blank at Level A, you can modify your DAX measure as follows:

XYZ =
VAR DaysinCurrentMonth = DAY(EOMONTH(TODAY(), 0))
VAR DayofMonth = DAY(TODAY())
VAR IncrementPerDay = DIVIDE([Incremental val], DaysinCurrentMonth)
VAR x = SUM('Report'[val Last Month]) + (IncrementPerDay * DayofMonth)
RETURN
IF(
HASONEVALUE('Report'[LevelB]),
x,
IF(
HASONEVALUE('Report'[LevelA]),
BLANK(),
x
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@Antmkjr , To achieve the desired behavior where the measure XYZ shows the same value at Level B as at Level A and is blank at Level A, you can modify your DAX measure as follows:

XYZ =
VAR DaysinCurrentMonth = DAY(EOMONTH(TODAY(), 0))
VAR DayofMonth = DAY(TODAY())
VAR IncrementPerDay = DIVIDE([Incremental val], DaysinCurrentMonth)
VAR x = SUM('Report'[val Last Month]) + (IncrementPerDay * DayofMonth)
RETURN
IF(
HASONEVALUE('Report'[LevelB]),
x,
IF(
HASONEVALUE('Report'[LevelA]),
BLANK(),
x
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.