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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
msciarrino
Helper I
Helper I

Slicers not working with table created from measures

Hello Everyone,

 

I am calculating 4 different measures from 4 seperate data sources. I want to graph these measures in pairs of Baseline and Current. To do this, I created a new table that uses measures as values in the table.

 

Below is a sample of the data. Each numeric value is a seperate measure. The Tasks Column are manually input, Baseline and Current are calcualted columns using SWITCH and triggering off of the Task name to put the correct measure into the correct cell.

msciarrino_0-1698353160043.png

 

When I graph this data I get the picture below. This is exactly what I want my data to look like.

msciarrino_1-1698353355218.png

My problem comes in when I try to add a slicer. All of my baseline measures have a relationship to a date table. When I change the date from all to a specific day, I expect the baseline values to change on my graph, but they do not. When I use my slicer, the graph remains unchanged.

 

Is there a way to get the slicers to work with this graph? Is there a better way to create this graph that will get me the same layout and allow the slicer to work? I am not stuck to using this process, it was just something I tried but I cannot seem to find a solution that will make this work the way I want to.

 

Thanks for the help.

4 REPLIES 4
Anand24
Super User
Super User

Hi @msciarrino ,
Is there any relationship established between the table you pasted in your post and the date table? Your baseline and current values are not at the date level and hence the values aren't changing on slicer changes.

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

There is no relationship between the table and the date table currently. But I was assuming since the values that were populating the table had a relationship that the table values would update.

@msciarrino ,
What's the relation? Can you please elaborate both tables and relationship.

PBI_SuperUser_Rank@1x.png  

Give a Thumbs Up if this post helped you in any way and Mark This Post as Solution if it solved your query !!!

Proud To Be a Super User !!!
LinkedIn

The relationship from my measures to the table provided is by using the following to create the Baseline column in the table:

Baseline = switch('MeasureTable'[Tasks], "Task A", [MeasureA_Baseline], "Task B", [MeasureB_Baseline])
 
The relationship between the measure and the date table is through the source data table. There are dates in the source data table that align with my date table.
 
There currently no relationship between the Data source table and the table shown (With the exception that it is built based on measures from the source table) and no relationship between the date table and the table shown above.
 
I understand that the issue with the slice is related to not have a relationship between the date table and Measures table. The problem with adding dates to the measures table is that the dates would need to be dynamic enough to expand my table everytime a new date is added to the Data source table.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors