Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
hello everyone,
I have a table with the following columns and measure:
I would need a measure (New Measure) to calculate the difference in Budget between the last available Report Date (9/30/2023) and the previous date right before (09/15/2023). The desired result is shown in the gree column above...any help from the experts will be really apprecited! thanks!
Solved! Go to Solution.
Hi,
Create a Calendar Table with a relationship (Many to One and Single) from the Report date column to the Date column of the Calendar Table. To your visual, drag Date column from the Calendar Table. Assuming Budget is a measure that you have already written, write this measure
Measure = [Budget]-calculate([budget],calculatetable(lastnonblank(Calendar[Date],calculate([budget])),datesbetween(calendar[date],minx(all(calendar[Date]),calendar[date]),min(calendar[date])-1)))
If this does not help, then share the download link of the PBI file.
Hi,
Create a Calendar Table with a relationship (Many to One and Single) from the Report date column to the Date column of the Calendar Table. To your visual, drag Date column from the Calendar Table. Assuming Budget is a measure that you have already written, write this measure
Measure = [Budget]-calculate([budget],calculatetable(lastnonblank(Calendar[Date],calculate([budget])),datesbetween(calendar[date],minx(all(calendar[Date]),calendar[date]),min(calendar[date])-1)))
If this does not help, then share the download link of the PBI file.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 40 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |