Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

slicer shows the value not related to fact table

Hi Expert,

 

I have a fact table show simple sales details with Month _id as below fig 1 & a dimen table to convert monthid into monthyear name as shown below in fig 2

NithiyanandamK_0-1667980513110.png

NithiyanandamK_1-1667980533042.png

 

data model

NithiyanandamK_2-1667980563198.png

 

I have converted both Mon_id in fact and dime table as text in power query editor. 

Question: When i try to creat a matrix and a slicer with values from din table it is showing the monthyear whcih is not related to fact table as below

 

NithiyanandamK_3-1667980717547.png

 

 

The fact table as the sale only for year 2022 but the slicer is show all the month in the monid table i know the data model create the full outer join between the fact & dimen. but i want to show only the month related ot fact table in this case the slicer should show only march2022,appril2022,may2022

1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

try to put the measure [Slicer Sales] equal to 1 in the filter pane of your slicer visual

 

mangaus1111_0-1667981482028.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

One of ways is to create a measure like below and put it into the visual filters pane of the slicer.

Please check the below picture and the attached pbix file.

 

 

Jihwan_Kim_0-1667981945970.png

 

 

 

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Anonymous
Not applicable

Hi Kim,

 

Can you post your measure here sorry i cant download the pbix to my machine

Hi,

The measure that I used is the below.

 

Sales measure: = 
SUM( Sales[Sales amount] )

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

try to put the measure [Slicer Sales] equal to 1 in the filter pane of your slicer visual

 

mangaus1111_0-1667981482028.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.