Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
This may be a really silly question, but I am trying to use a slicer value to filter a table.
In the following example
Solved! Go to Solution.
Hi @Anonymous
In Power BI, it doesn't support to filter a table based on a filter.
The physical table is static.
You could work with a workaround as below.
Create measure, add columns from the Merchants_Parent table in a "Table" visual, then add this measure in the visual level filter f the table visual.
Table = Var Option = [OptionSelected] RETURN IF (Option = "Yes", CALCULATE(COUNTROWS(Merchants_Parent),FILTER(Merchants_Parent,Merchants_Parent[MerchantStatus] <> "")), CALCULATE(COUNTROWS(Merchants_Parent),FILTER(Merchants_Parent,Merchants_Parent[MerchantStatus] <>"Closed")) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
In Power BI, it doesn't support to filter a table based on a filter.
The physical table is static.
You could work with a workaround as below.
Create measure, add columns from the Merchants_Parent table in a "Table" visual, then add this measure in the visual level filter f the table visual.
Table = Var Option = [OptionSelected] RETURN IF (Option = "Yes", CALCULATE(COUNTROWS(Merchants_Parent),FILTER(Merchants_Parent,Merchants_Parent[MerchantStatus] <> "")), CALCULATE(COUNTROWS(Merchants_Parent),FILTER(Merchants_Parent,Merchants_Parent[MerchantStatus] <>"Closed")) )
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you this is great 🙂
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |