Forum Discussion
Anonymous
8 years agoNot applicable
SWITCH function failing wiht measures
Hello community, I hope you can help me with this. I am working with a SQL Database into my Power BI desktop, in which I have 'Deal ID' and 'Amount', and I am trying to create a custom column to ...
- 8 years ago
Banding is done in columns, not measures. Read my 2 articles here
https://exceleratorbi.com.au/banding-in-dax/
https://exceleratorbi.com.au/conditional-columns-power-bi-desktop/
Danke1981
7 years agoNew Member
Another solution would be:
Grouping the amount first
Group
[Amount]<=5000, "1"
5000<[Amount]<=10000, "2"
10000<[Amount]<=20000, "3"
20000<[Amount]<=50000, "4"
.
.
.
Then use swith function:
WITCH(
TRUE(),
[Group]=1 ,”<5K″,
[Group]=2 ,”5-10K″,
.
.
.
.