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! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 33 | |
| 31 | |
| 20 | |
| 12 | |
| 11 |