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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
colinryan
Regular Visitor

Timeframe Slicer using columns

Hello,

 

I have columns containing the branches/departments and how many products were sold on different timeframes. And I want to be able to have a single select slicer on those timeframes so my charts and graphs would update depending on which timeframe I select. For example I want to see the top 10 branches/departments that sold the most products on 30 days or 180 days.

 

colinryan_0-1723202964428.png

 

Thank you

2 ACCEPTED SOLUTIONS
SamWiseOwl
Super User
Super User

Hi @colinryan 

Have you tried using the Parameter Fields?

SamWiseOwl_0-1723204821757.png

You can choose which fields or KPIs to show in your visual:

SamWiseOwl_1-1723204985998.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

Anonymous
Not applicable

Hi,

Thanks for the soltion SamWiseOwl offered, and i want to offer some more information for user to refer to.

hello @colinryan , you can also refer to the following solution.

Create a slicer table.

vxinruzhumsft_0-1723776526858.png

 

Then create a measure

MEASURE =
SWITCH (
    SELECTEDVALUE ( 'Slicer'[Choice] ),
    "30 Days", CALCULATE ( SUM ( 'Table'[Sold(30 Days)] ) ),
    "90 Days", CALCULATE ( SUM ( 'Table'[Sold(90 Days)] ) ),
    "180 Days", CALCULATE ( SUM ( 'Table'[Sold (180Days)] ) ),
    CALCULATE ( SUM ( 'Table'[Sold(365 Days)] ) )
)

Output

vxinruzhumsft_1-1723776575705.png

 

vxinruzhumsft_2-1723776582213.png

Best Regards!

Yolo Zhu

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

Hi,

Thanks for the soltion SamWiseOwl offered, and i want to offer some more information for user to refer to.

hello @colinryan , you can also refer to the following solution.

Create a slicer table.

vxinruzhumsft_0-1723776526858.png

 

Then create a measure

MEASURE =
SWITCH (
    SELECTEDVALUE ( 'Slicer'[Choice] ),
    "30 Days", CALCULATE ( SUM ( 'Table'[Sold(30 Days)] ) ),
    "90 Days", CALCULATE ( SUM ( 'Table'[Sold(90 Days)] ) ),
    "180 Days", CALCULATE ( SUM ( 'Table'[Sold (180Days)] ) ),
    CALCULATE ( SUM ( 'Table'[Sold(365 Days)] ) )
)

Output

vxinruzhumsft_1-1723776575705.png

 

vxinruzhumsft_2-1723776582213.png

Best Regards!

Yolo Zhu

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

 

SamWiseOwl
Super User
Super User

Hi @colinryan 

Have you tried using the Parameter Fields?

SamWiseOwl_0-1723204821757.png

You can choose which fields or KPIs to show in your visual:

SamWiseOwl_1-1723204985998.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.