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
Hello. I have two measures: one measure returns the RecordPeriod (RecPD) from a slicer (only one period can be chosen). The other measure extracts the year from that slicer value. For example, say the user selects "202402" as the RecPd. The Year Extract measure would return "2024".
How can I sum up a "Net" column of values depending on what the user chooses for the RecPD? This is for a balance sheet and needs to be cumulative. For example, using the above sample of 202402, the "Net" total would include "Net" values from 202400, 202401 and 202402. Here is what I tried, but it did not work:
Solved! Go to Solution.
@rmcgrath , Seem like [RecPd Selection] is measure. Use filter function
calculate(Sum(RawGLData[Net]), filter(dimDate, dimDate[Period] >= ([Year Extract] & 00) && dimDate[Period] <= [RecPd Selection] ))
@rmcgrath , Seem like [RecPd Selection] is measure. Use filter function
calculate(Sum(RawGLData[Net]), filter(dimDate, dimDate[Period] >= ([Year Extract] & 00) && dimDate[Period] <= [RecPd Selection] ))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 38 | |
| 38 | |
| 28 | |
| 27 |
| User | Count |
|---|---|
| 124 | |
| 88 | |
| 73 | |
| 66 | |
| 65 |