This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi Community. Please help
I want to have Columns from March - Feb. Each Month Must Display the Actual Sales for that Month (NOT TOTAL YTD), then the total column must give YTD. If the user selects April in the month Slicer. The April column will Have April's Data (NOT CUMULATIVE OR YTD) and in the Total Column the YTD from Mar .
Eg. 1
Mar Apr May YTD
10 20 30 60
Eg. 2If I select April from the Month Slicer
Mar Apr YTD
10 20 30
See OutCome Hoped.
Solved! Go to Solution.
Hi @SammiP ,
First create a dim date table as below:
Date = VALUES('Table'[Date])
Then create a measure as below:
Measure =
IF (
ISFILTERED ( 'Date'[Date] ),
IF (
ISINSCOPE ( 'Table'[Date] ),
IF (
MAX ( 'Table'[Date] ) <= SELECTEDVALUE ( 'Date'[Date] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] = MAX ( 'Table'[Date] ) )
),
BLANK ()
),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] <= SELECTEDVALUE ( 'Date'[Date] ) )
)
),
SUM ( 'Table'[Value] )
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @SammiP ,
First create a dim date table as below:
Date = VALUES('Table'[Date])
Then create a measure as below:
Measure =
IF (
ISFILTERED ( 'Date'[Date] ),
IF (
ISINSCOPE ( 'Table'[Date] ),
IF (
MAX ( 'Table'[Date] ) <= SELECTEDVALUE ( 'Date'[Date] ),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] = MAX ( 'Table'[Date] ) )
),
BLANK ()
),
CALCULATE (
SUM ( 'Table'[Value] ),
FILTER ( ALL ( 'Table' ), 'Table'[Date] <= SELECTEDVALUE ( 'Date'[Date] ) )
)
),
SUM ( 'Table'[Value] )
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
have you created a file yet? If you import your table in and filter by that column it should do that automatically. Where are you struggling exactly?
Proud to be a Super User!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 23 | |
| 22 |