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
Try like
Risk M vs M-1 Cumm = if( not(isblank(IAR_Final_Database[Risk M])) && HASONEVALUE(Periods[Period]), CALCULATE(sumx(values(Periods[Period]),[Risk M vs M-1]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) )) -CALCULATE([Risk M vs M-1],Periods[Period]=0) , BLANK())
Desired output :
I've provided you file on private message, will post result once solved
VAR RowDate = max(Periods[Period])
RETURN
CALCULATE (
calculate(IAR_Final_Database[Risk M vs M-1]),
FILTER (
IAR_Final_Database,
IAR_Final_Database[Period] <= RowDate && IAR_Final_Database[Period] >0 ))
or
VAR RowDate = max(Periods[Period])
RETURN
CALCULATE (
calculate(IAR_Final_Database[Risk M vs M-1]),
FILTER (
allselected(IAR_Final_Database),
IAR_Final_Database[Period] <= RowDate && IAR_Final_Database[Period] >0 )) +0
Ive tried that and its still outputting same values. I guess there is a problem with columns 1-3.
Maybe you could find somwhere a mistake:
COl 1 formula :
@hejszyszky , Try like
VAR RowDate = max(Periods[Period])
RETURN
CALCULATE (
calculate(IAR_Final_Database[Risk M vs M-1]),
FILTER (
IAR_Final_Database,
IAR_Final_Database[Period] <= RowDate -1 ))
I think You need till last month.
or
Can you share sample data and sample output in table format?
Still getting output as below:
Where my desired output is :
Try like
Risk M vs M-1 Cumm = if( not(isblank(IAR_Final_Database[Risk M])) && HASONEVALUE(Periods[Period]), CALCULATE(sumx(values(Periods[Period]),[Risk M vs M-1]), filter(ALLSELECTED(Periods), Periods[Period] <= max(Periods[Period]) )) -CALCULATE([Risk M vs M-1],Periods[Period]=0) , BLANK())
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |