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.
Hello,
I have a budget value which is fixed for a year. I want to subtract for each month and remaining value should subtract the next month.
The table us given below:
D | F |
|
25 | 475 | 500 |
50 | 425 | |
100 | 325 | |
75 | 250 | |
45 | 205 | |
250 | -45 |
My constant value is 500 so if we subtract 500-25 = 475.
475 should subtract next valuein the column like 475-50 = 425, 425-100=325, 325-75 = 50.Please help get the column F. Your help would be highly appreciated.
Thank you
Solved! Go to Solution.
@Junaid11 - Here's one one to do it where you create a running total.
Proud to be a Super User!
Hi @Junaid11,
Use your date column to rank the values in column D.
Rank = RANKX('Table','Table'[Date],,ASC)
Then use this formula to create column F.
F = 500 - SUMX('Table',IF('Table'[Rank]<=EARLIER('Table'[Rank]),'Table'[D],0))
Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI
@Junaid11 - Here's one one to do it where you create a running total.
Proud to be a Super User!
@Junaid11 - whoops! I just realized I didn't fix the Total row.
Proud to be a Super User!
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 |
---|---|
108 | |
105 | |
87 | |
74 | |
66 |
User | Count |
---|---|
124 | |
112 | |
96 | |
80 | |
72 |