Power Bi, Sankey Diagram, display error when crossfiltering

Chtorr00

New Member
Joined
Feb 27, 2016
Messages
5
I have a dashboard in PowerBI Desktop that is using the Sankey diagram visualization. The graphic uses a calculated column on the left side, a calculated column on the right side, and a measure to populate the "flows" between each section of each side. The graphic looks great, and if i click on the flows in the middle, it does a great job of crossfiltering a neighboring bar chart.

The problem is, when I click on one of the segments on the far right, or the far left, the crossfiltering stops working and I get a display error in the neighboring bar chart. I've seen the videos about the sankey diagram - you are supposed to be able to slice using your left and right categories. When I get the details of the error, there is the following language: "The DataShape 'DS0' filters a measure 'M0' using a filter of multiple sets of multiple field comparisons. Measures are not allowed with complex slicers unless they have a filter context change."

I have the related relationships going in both directions, so that doesn't seem to be the problem.

I'm guessing that using a relatively simple Calculate measure falls short of what is needed for the full crossfilter functionality. I realize there all sorts of options out there to enrich the row/filter context. Calculatetable, Summarize, Crossjoin, Keepfilters, etc. The problem is, I have no idea which of these approaches is relevant for rewriting my measure with the two related columns.

Any suggestions or pointers on which way to go to address this in Dax?

Thanks,

Mark
<body id="************" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">The DataShape 'DS0' filters a measure 'M0' using a filter of multiple sets of multiple field comparisons. Measures are not allowed with complex slicers unless they have a filter context change.The DataShape 'DS0' filters a measure 'M0' using a filter of multiple sets of multiple field comparisons. Measures are not allowed with complex slicers unless they have a filter context change.VThe DataShape 'DS0' filters a measure 'M0' using a filter of multiple sets of multiple field comparisons. Measures are not allowed with complex slicers unless they have a filter context change.The DataShape 'DS0' filters a measure 'M0' using a filter of multiple sets of multiple field comparisons. Measures are not allowed with complex slicers unless they have a filter context change.</body>
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,215,274
Messages
6,123,991
Members
449,137
Latest member
abdahsankhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top