Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a table with ID, a text (supply scheme) and a date column that comes from a Date table :
ID | SupplyScheme | Date |
123 | ABC | 11/16/2022 |
1234 | ABC | 11/16/2022 |
12345 | ABC | 11/16/2022 |
123 | ABC | 11/15/2022 |
1234 | ABC | 11/15/2022 |
12345 | EFG | 11/15/2022 |
What I currently display is a table visual that shows today's data (just a filter onthe date column to only get today's data) like this :
ID | SupplyScheme | Date |
123 | ABC | 11/16/2022 |
1234 | ABC | 11/16/2022 |
12345 | ABC | 11/16/2022 |
Now what I want is to know what was the supply scheme yesterday by creating a measure (I'm in live connection). So something like this :
ID | SupplyScheme | Date | supplyscheme yesterday |
123 | ABC | 11/16/2022 | ABC |
1234 | ABC | 11/16/2022 | ABC |
12345 | ABC | 11/16/2022 | EFG |
Is there an simple way to achieve this ?
thanks in advance
Solved! Go to Solution.
Hi @Broly , try this measure:
supplyscheme yesterday = CALCULATE(max(Table1[SupplyScheme]),
FILTER(ALLEXCEPT(Table1,Table1[ID]),MAX(Table1[Date])-1))
The result:
Best regards
thank you very much for your help !
Hi @Broly , try this measure:
supplyscheme yesterday = CALCULATE(max(Table1[SupplyScheme]),
FILTER(ALLEXCEPT(Table1,Table1[ID]),MAX(Table1[Date])-1))
The result:
Best regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
101 | |
76 | |
64 | |
63 |
User | Count |
---|---|
141 | |
105 | |
101 | |
80 | |
67 |