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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Saltharion
New Member

Slicer affecting 2 charts differently

I've got 2 charts, a Sankey chart and a clustered bar chart, showing tasks assigned to different teams. I've created a slicer that allows the user to filter by tasks due in the next week, the next 2 weeks and the month.

 

The slicer works correctly when I select next week & next month, but when selecting next 2 weeks there is a discrepancy between the charts - the Sankey correctly shows 1 task due, and the bar chart doesn't show anything. What could be causing this difference?

4 REPLIES 4
Fowmy
Super User
Super User

@Saltharion 

If it works for some selection and and not for others then you need to check the DAX logic that is implemented in your meaure and/or if you have applied Visual Level filters and how it affects.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

If there is a problem with the measure, wouldn't it affect both charts? The charts are both based off the same data source

@Saltharion 

It depends how the filter context works in each of these visuals, check the categorical and value axis that are used in both, do you have any other fileds added in the bar chart or any visual level filter applied which affect the calculation?

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

The bar chart uses 'Dependency Owner' on the x axis and '#Dependencies' on the y axis, based on the sum of dependency IDs.

The Sankey chart uses 'Raised by' as the source, 'Dependency Owner' as the destination and the sum of dependency IDs as the weight.

 

My measure is:

 

Period_Selection = VAR Period_Selected = SELECTEDVALUE('Custom Period' [order])

VAR _week = MAX('Clean up' [Due Date]) IN FILTER(DIM_DATE[Due Date] >= TODAY() && DIM_DATE[Due Date] <=TODAY() + 7)

VAR _2week = MAX('Clean up' [Due Date]) IN FILTER(DIM_DATE[Due Date] >= TODAY() && DIM_DATE[Due Date] <=TODAY() + 14)

VAR _month = MAX('Clean up' [Due Date]) IN FILTER(DIM_DATE[Due Date] >= TODAY() && DIM_DATE[Due Date] <=TODAY() + 30)

VAR _all = MAX(DIM_DATE[Due Date]) IN ALL('Clean up'[Due Date])

RETURN

int(SWITCH(Period_Selected, 1, _week,

2, _2week,

3, _month,

4, _all))

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.