Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreShape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.
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!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
User | Count |
---|---|
92 | |
92 | |
83 | |
80 | |
49 |
User | Count |
---|---|
146 | |
137 | |
109 | |
68 | |
55 |