Forum Discussion

smitpau's avatar
smitpau
Helper I
5 years ago
Solved

PowerBI Switch DAX Not Working

Hi,

I'm using a Switch DAX to create unique subtotals like in the video below.

 

The problem is that it doesn't switch to the measure value for some reason.

 

The file is also linked below, it's a simple example file as I've stripped it back to help understand for myself.

 

Essentially this line of code below is the problem and specifically it can't return this [Total Rev] measure, it can show other values like 1 fine. So for some reason the way the measure for [Total Rev] is created is causing a problem but I'm not sure why that is.

CurrentItem = "Total Revenue",[Total Rev],

 

Any help is much appreciated.

 

How To Create Unique Subtotals In Power BI Tables Using DAX - YouTube 

 

File:

https://1drv.ms/u/s!Ajcv_9xvRfBd5wxrsZvSuV7P858S?e=SaGr1Y 

 

Thanks for reading,

Paul

4 Replies