Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
@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
)
)
Proud to be a 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
)
)
Proud to be a Super User! |
|
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 21 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 35 | |
| 31 | |
| 20 | |
| 13 | |
| 11 |