Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
77 | |
74 | |
57 | |
38 | |
33 |
User | Count |
---|---|
70 | |
63 | |
55 | |
48 | |
46 |