Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone,
I would like to find a method to prevent the slicer from affectin the function of the measure I have created.
the highlighted measure includes a furmola to count a filtered coulmn from a table
the slicer added to another table to filter the data.
both tables are related but once that happens the measure in Card gets the same value.
This is the Card including the Measure highlighted:
This is the Measure I am applying to the highlighted Card:
This is the relation between the 2 tables I am using the Cost Center field in each table to connect:
I would appreciate your help
thank you
Solved! Go to Solution.
Thanks for the reply from powerbidev123, please allow me to provide another insight.
Hi @Faris2024
You can try wrapping the table argument of the Filter function with an ALL function so that the filtering context returned by the Filter function is not affected by the external slicer.
Total_Below19=CALCULATE(
COUNTROWS(Actual),
FILTER(ALL(Actual),...)
)
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from powerbidev123, please allow me to provide another insight.
Hi @Faris2024
You can try wrapping the table argument of the Filter function with an ALL function so that the filtering context returned by the Filter function is not affected by the external slicer.
Total_Below19=CALCULATE(
COUNTROWS(Actual),
FILTER(ALL(Actual),...)
)
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Faris2024 , To make this happen such that the slicer not affecting the measure inside the card visual. Go to Format-> Edit interactions .
Upon clicking the slicer you will symbol like this on top right corner of the visual .
It will stop the filtering on that particular visual. Let me know if this helps
Thank you @powerbidev123 for your helpful & unsightful information. However, What I need is to apply both the measure which includes filters and the slicer's filter.
@Faris2024 .Try using KEEPFILTERS function or ALL function in your calculate measure. This will keep your filters intact
Did not work for me
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 22 | |
| 10 | |
| 10 | |
| 7 | |
| 5 |