cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pp92
Frequent Visitor

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 🙂

Proud to be a Super User!

Helpful resources

Announcements
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors