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

CALCULATETABLE() + SELECTEDVALUE as Filter ?

Hi, I such a way for create a table based on value which is based on another table onclick,

Thats doesnt work 😞

Testtable = 
var selval = SELECTEDVALUE(MyTable[Quantity])
    return CALCULATETABLE(
        MyTable,
        FILTER(
                ALL(MyTable),
                MyTable[Quantity] = selval
            ))


 

1 REPLY 1
Stachu
Community Champion
Community Champion

this is not achievable in the import mode, calculated columns and tables are refreshed with the model and do not change with the slicer selections (you could have the same slicer in multiple pages with different values, so the model would not be in a consistent state)

As far as I know it's only possible with DirectQuery and dynamic M parameters:
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

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