Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
My row level security access table has a one to many relationship with my fact table. In this particular chart, when I filter on one of the roles, it filters the data associated with the measures correctly, but leaves the all the dimension items regardless of relation. Filtering works correctly on all other charts/graphs in the report except for this one. I think it is associated with the fact that the two metrics are calculated using the SWITCH () function - that's the only difference I can see. Any ideas on a possible solution?
Formula for Net Sales
Solved! Go to Solution.
I ended up brining the role into the fact table since it was a one (access) to many (fact). It works that way but I would think there's a better way. And it is definately the SWITCH function. I tried the table with other elements and it worked fine until I added the metric using SWITCH.
Unfortunately this is already deselected.
Hi @lfholland,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to @danextian and @Greg_Deckler for prompt and helpful responses.
Just following up to see if the responses provided by community members were helpful in addressing the issue.
If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar
Hi @lfholland
Possibly due to the use of FORMAT. This function returns a text and still applies formatting to a blank value but of course returns a white space. Try using dynamic format strings instead.
IF (
MAX ( 'Period Column Table'[Period] ) = "YTD Var",
"Percent",
"$#,##0;($#,##0)"
)
I ended up brining the role into the fact table since it was a one (access) to many (fact). It works that way but I would think there's a better way. And it is definately the SWITCH function. I tried the table with other elements and it worked fine until I added the metric using SWITCH.
@lfholland Have you checked this box on the relationship?
I did and that didn't resolve it.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |