This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
I have this measure as below.
I have a doubt that your measure is not respecting the filtering context and accidentally resetting or overriding it.
For example, when calculating Red Count, Amber Count, and Green Count, ensure that they properly respect the filter context:
VAR RedCount = CALCULATE([Red Count], KEEPFILTERS(YourTable))
VAR AmberCount = CALCULATE([Amber Count], KEEPFILTERS(YourTable))
VAR GreenCount = CALCULATE([Green Count], KEEPFILTERS(YourTable))
Since the measure is being used in a matrix visual, try explicitly defining how the matrix should interact with other visuals.
You can manage the filtering behavior under the "Edit Interactions" options in Power BI.
Since you mentioned that using a calculated column resolves the bypassing issue but doesn't display the image correctly, this suggests the dynamic nature of the measure might be part of the problem. While calculated columns lack flexibility in filtering, a workaround could be to precalculate values or store them in a way that still allows for dynamic rendering without bypassing.
Alternatively, you can create calculated columns for Red Count, Amber Count, and Green Count and a measure for the SVG part, keeping it separate from the counts themselves.
Red Count, Amber Count, and Green Count are not causing the issue actually, when i return total count or either of them instead of SVG it do not causes the issue but when i return any static valu like max width,SVG and all it causes the bypassing.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 32 | |
| 26 | |
| 23 | |
| 20 | |
| 20 |