Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
I have the following table and want to calculate the difference for each date.
How do I do this in a measure?
First date should be: 20
Second date should be: 60
Time | Value | Category 1 |
2022-01-01 | 50 | A |
2022-01-01 | 30 | A |
2022-01-01 | 45 | B |
2022-01-01 | 47 | B |
2022-01-02 | 51 | A |
2022-01-02 | 52 | A |
2022-01-02 | 70 | A |
2022-01-02 | 20 | B |
2022-01-02 | 22 | B |
2022-01-02 | 10 | C |
2022-01-03 | 14 | A |
Hi,
try this:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍