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
Hi
I have a dimension shared by two facts. That dimension has 3 distinct values. Fact table A, has all 3 distinct values, and table B has 2 out of 3 distinct dimension values.
I am displaying the insights in two pages, one for each fact. When I put the dimension as a slicer on the canvas, it is displaying 3 distinct values on both pages, whereas it should display 3 on the first, and 2 on the second page.
What's the workaround to solve it?
Link to the .pbix file is as follows:
Danish
Solved! Go to Solution.
Hi @danisharoon ,
I suggest you to create a measure to filter the slicer in Page2.
My Sample:
dim_prod_category:
Fact Table1:
Fact Table2:
Measure:
Slicer Filter In Page 2 =
VAR _CATEGORY_IN_Fact2 =
VALUES ( 'Fact Table2'[product category name] )
RETURN
IF (
MAX ( dim_prod_category[product category name] ) IN _CATEGORY_IN_Fact2,
1,
0
)
Add this measure into visual level filter of the slicer visual and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This ain't working
Hi @danisharoon ,
I suggest you to create a measure to filter the slicer in Page2.
My Sample:
dim_prod_category:
Fact Table1:
Fact Table2:
Measure:
Slicer Filter In Page 2 =
VAR _CATEGORY_IN_Fact2 =
VALUES ( 'Fact Table2'[product category name] )
RETURN
IF (
MAX ( dim_prod_category[product category name] ) IN _CATEGORY_IN_Fact2,
1,
0
)
Add this measure into visual level filter of the slicer visual and set it to show items when value =1.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@danisharoon , Use a measure from fact as visual level filter and check for non blank
Take an example from this video if needed
Yes in this case one can use a filter from the fact table. But in other cases this solution above is of huge value!
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |