Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have the code for current month, which works well for me. However if I check the DATEADD to -1, the current month row data doesn't show the previous month value in the table visual. Any idea why?
CurrM = CALCULATE(
SUM('CADUSD'[Balance]),
FILTER(
'CADUSD', 'CADUSD'[Data Type] <> "Plan"
),
DATEADD(
Calendar[Date], 0, MONTH
)
)
PrevM = CALCULATE(
SUM('CADUSD'[Balance]),
FILTER(
'CADUSD', 'CADUSD'[Data Type] <> "Plan"
),
DATEADD(
Calendar[Date], -1, MONTH
)
)
See my example attached on how to set up the measures, you can adjust as needed:
I used a similar structure of yours but changed my totals just to serve as an example.
Proud to be a Super User!
You are filtering your data for February so in the filter context there's nothing to be shown for January but it appears since you included a Previous Month value as well. For Current Month you should remove the DateAdd portion of the measure, it is not needed.
Proud to be a Super User!
if I remove the months filter, the CurrM column now has more than 1 values. I should expect CurrM to only show only the february number when i have DATEADD, 0, MONTH (see image attached)
Why would you need the Data Type column filter on the measure but then add it to the visual?
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |