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
Anonymous
Not applicable

Using slicer to change forumla

Hi,

 

i have the following formula:

FY Prior Fcst = calculate(sum(Prior_Forecast[Amount]),Prior_Forecast[Month]= "Nov")/1000
 
i want to add a slicer that allows the user to select a particular month or combination of months. Is there any way to rewrite the formula so it adds the months that have been selected?
1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

FY Prior Fcst = calculate(sum(Prior_Forecast[Amount]),FILTER('Prior_Forecast',Prior_Forecast[Month] in SELECTCOLUMNS('For slicer',"Month",[Month])))/1000

Output:

vjianbolimsft_0-1670548982184.png

Best Regards,

Jianbo Li

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-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try:

FY Prior Fcst = calculate(sum(Prior_Forecast[Amount]),FILTER('Prior_Forecast',Prior_Forecast[Month] in SELECTCOLUMNS('For slicer',"Month",[Month])))/1000

Output:

vjianbolimsft_0-1670548982184.png

Best Regards,

Jianbo Li

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

v-jianboli-msft
Community Support
Community Support

Hi @Anonymous ,

 

Beased on your description, I have created a simple sample:

vjianbolimsft_0-1670461824420.png

 

Please try:

First, create a new table for slicer:

vjianbolimsft_1-1670461855204.png

Then apply the measure:

FY Prior Fcst = calculate(sum(Prior_Forecast[Amount]),Prior_Forecast[Month]= SELECTEDVALUE('For slicer'[Month]))/1000

Final output:

vjianbolimsft_2-1670461889944.png

vjianbolimsft_3-1670461900990.png

Best Regards,

Jianbo Li

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

Anonymous
Not applicable

Hi @v-jianboli-msft ,

 

thanks for the help, this does allow me to updated the values automatically based on the month selected however, it does not work if multiple months are selected is there a work around for that?

 

Thanks,

Harman

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