I want to compare values between last date and second last date. The date table has future dates as well so I am filtering the date with the non null FactCovidADCDaily[Daily Census (Total)] value. Here is my DAX:
Hi @monikamishra ,
On the second last date you are picking up all the dates except the max date however since you are getting the full values of the table you always get the same values.
I don't know how you have your information but the second last date can be picked up with something similar to:
Second Last Date =
MAXX (
FILTER (
ALLSELECTED(FactCovidADCDaily);
FactCovidADCDaily[Daily Census (Total)] <> BLANK ()
&& FactCovidADCDAily[Date] < MAX ( DimDate[Date] )
);FactCovidADCDaily[Date]
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsFeatured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
458 | |
176 | |
117 | |
60 | |
51 |
User | Count |
---|---|
449 | |
159 | |
129 | |
73 | |
73 |