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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Create a table using slicer value

Hi everyone, 

 

I'm new to Power BI and I would like your help a problem. 

 

Problem: Create a colum, or a series with the value provided by a slicer (or any manual input data will works)

 

Example: I would like to generate a table with 1 column that have the Lower and Uper time frame that can be select by a slicer (or any manual input data method on report screen). 

 

DanhBui_1-1603168253198.pngDanhBui_2-1603168257093.png

 

it seem like I can not get the value of the parameter from the slicer to input in the generateseries function. 

 

Thank you,

Danh

 

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

Hi, @Anonymous 

 

It’s my pleasure to answer for you.
I’m sorry that you can’t use slicer to directly generate dynamic tables, only some aggregate values of dynamic tables can be displayed.I have a workaround for you. You need create a calculated table using generateseries function and a measure used in filter pane.

Like this:

Table =
GENERATESERIES (
    MIN ( TimeFrame_below[TimeFrame_below] ),
    MAX ( TimeFrame_Above[TimeFrame_Above] ),
    0.1
)
Measure =
VAR A =
    SELECTEDVALUE ( TimeFrame_below[TimeFrame_below] )
VAR B =
    SELECTEDVALUE ( TimeFrame_Above[TimeFrame_Above] )
RETURN
    IF (
        SELECTEDVALUE ( 'Table'[Value] ) >= A
            && SELECTEDVALUE ( 'Table'[Value] ) <= B,
        1
    )

v-janeyg-msft_0-1603333881082.pngv-janeyg-msft_1-1603333889357.pngv-janeyg-msft_2-1603333897210.png

Here is my sample data. Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards
Janey Guo

 

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

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

It’s my pleasure to answer for you.
I’m sorry that you can’t use slicer to directly generate dynamic tables, only some aggregate values of dynamic tables can be displayed.I have a workaround for you. You need create a calculated table using generateseries function and a measure used in filter pane.

Like this:

Table =
GENERATESERIES (
    MIN ( TimeFrame_below[TimeFrame_below] ),
    MAX ( TimeFrame_Above[TimeFrame_Above] ),
    0.1
)
Measure =
VAR A =
    SELECTEDVALUE ( TimeFrame_below[TimeFrame_below] )
VAR B =
    SELECTEDVALUE ( TimeFrame_Above[TimeFrame_Above] )
RETURN
    IF (
        SELECTEDVALUE ( 'Table'[Value] ) >= A
            && SELECTEDVALUE ( 'Table'[Value] ) <= B,
        1
    )

v-janeyg-msft_0-1603333881082.pngv-janeyg-msft_1-1603333889357.pngv-janeyg-msft_2-1603333897210.png

Here is my sample data. Hope it helps.

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards
Janey Guo

 

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

Why is every thing that's simple in SSRS a nightmare in PBI?

manikumar34
Solution Sage
Solution Sage

@Anonymous , 

 

No clear, 

 

Can you check with the data type of Upper and Lower limits.

 

Regards, 

Manikumar





If this helps, Appreciate your KUDOS!
Did I answer your question? Mark my post as a solution!


Proud to be a Super User!




amitchandak
Super User
Super User

@Anonymous , You can not create a table that uses slicer value. Only a var table in the measure can use that.

 

 

Please provide your feedback comments and advice for new videos
Tutorial Series Dax Vs SQL Direct Query PBI Tips
Appreciate your Kudos.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.