The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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êsUser | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
62 | |
53 | |
51 |