Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Abhijsrwala1
Frequent Visitor

Advanced Filter

How do I create a filter that has Jan,feb as well as This month, last fiscal year, as its elementn.

Note : This month, last fiscal year are not in dataset, has to be calculated and included as slicer elements.Capture.PNG

1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Abhijsrwala1 ,

The option in slicer must be the value in the column, so you should create a new table.

vkalyjmsft_0-1652174926591.png

Slicer table =
UNION (
    VALUES ( 'Table'[Month] ),
    ROW ( "Month", "This month" ),
    ROW ( "Month", "Last fiscal year" )
)

Get the result.

vkalyjmsft_1-1652175009214.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @Abhijsrwala1 ,

The option in slicer must be the value in the column, so you should create a new table.

vkalyjmsft_0-1652174926591.png

Slicer table =
UNION (
    VALUES ( 'Table'[Month] ),
    ROW ( "Month", "This month" ),
    ROW ( "Month", "Last fiscal year" )
)

Get the result.

vkalyjmsft_1-1652175009214.png

I attach my sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Abhijsrwala1
Frequent Visitor

@amitchandak I understand, but once those values are calculated how to bring that under one slicer along with rest of the values. As you can see. 01-Jan and calculated values are together in one slicer.
Capture.PNG

amitchandak
Super User
Super User

@Abhijsrwala1 , Based on what I got, You can have year behind measures

 

Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))

 

or last year same month

 

last year MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-12,MONTH)))
Previous year Month Sales = CALCULATE(SUM(Sales[Sales Amount]),previousmonth(dateadd('Date'[Date],-11,MONTH)))
last year MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-12,MONTH))))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.