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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sagejah9
Helper III
Helper III

Show values for each month in a column chart up to the selected month in slicer

Hi

I would like to show my measure for all the months up to the selected month in the slicer included. However my measure is calculating for all the month therefore showing all months. 

 

for example if I select Apr in the slicer I would like it to show from the beginning of the year (Jan) TO apr

 and months after return blank

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

Hi, @Sagejah9 

 

1. To create a calculated table(Slicer)

_Slicer =
SELECTCOLUMNS ( 'Table', "Month", MONTH ( 'Table'[Date] ) )

 2. To create a measure:

Measure = IF(MONTH(MAX('Table'[Date]))<=MAXX(VALUES(_Slicer[Month]),[Month]),1,0)

3. add a slicer visual with month field from table Slicer.

4. Filter the visual when measure is 1 in filter pane.

vangzhengmsft_0-1630308185699.png

resutl:

vangzhengmsft_1-1630308215228.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

Hi, @Sagejah9 

 

1. To create a calculated table(Slicer)

_Slicer =
SELECTCOLUMNS ( 'Table', "Month", MONTH ( 'Table'[Date] ) )

 2. To create a measure:

Measure = IF(MONTH(MAX('Table'[Date]))<=MAXX(VALUES(_Slicer[Month]),[Month]),1,0)

3. add a slicer visual with month field from table Slicer.

4. Filter the visual when measure is 1 in filter pane.

vangzhengmsft_0-1630308185699.png

resutl:

vangzhengmsft_1-1630308215228.png

Please refer to the attachment below for details. Hope this helps.

 

 

Best Regards,
Community Support Team _ Zeon Zheng


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

amitchandak
Super User
Super User

@Sagejah9 , if select one month and want to show 4-month on-trend, You need to have an independent date table.

 

refer this

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors