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 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 @Anonymous ,
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êsCheck out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
97 | |
88 | |
59 | |
43 | |
40 |