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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have 1 table and the data like this
| Date | Attribute | Value | Index |
| 22/01/2021 | TR1 | 100 | 1 |
| 23/01/2021 | TR1 | 120 | 2 |
| 24/01/2021 | TR1 | 130 | 3 |
| 26/01/2021 | TR1 | 140 | 4 |
| 22/01/2021 | TR2 | 200 | 1 |
| 23/01/2021 | TR2 | 202 | 2 |
| 24/01/2021 | TR2 | 203 | 3 |
| 26/01/2021 | TR2 | 205 | 4 |
I calculate the difference via index by this formula
I want to find YTD and MTD with the same attribute.
@amitchandak
I summarize all the data so all the data is maxed with the unique date in the main table
and marked as a date in a table calendar already.
The output appears like in the picture.
@amitchandak here is the link
https://www.dropbox.com/s/7wm8wg58dq1xyjl/test.pbix?dl=0
I want to calculate the diff between rows by each attribute and then calculate ytd/mtd for each attribute.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |