Forum Discussion
nkasdali
Microsoft Employee
7 years agoDax calculated column with IF
Hi All, I need your help in dax matters. I'm trying to add a column into my dataset as flag to identify if my value is greater then the Percentil if this same value : here my dax QuadrantTur...
v-cherch-msft
Microsoft Employee
7 years agoHi nkasdali
You may create the measure like below:
QuadrantTurnover V2 =
VAR vTurn =
SUM ( Data[Turnover/Month] )
VAR vPerc =
CALCULATE (
PERCENTILE.INC ( Data[Turnover/Month]; 0,8 );
ALLEXCEPT (
'Data';
Data[EAN];
'Data'[Country];
Data[Product];
'Data'[Time Period]
)
)
RETURN
IF ( vTurn > vPerc; "TOP"; "BOTTOM" )
Regards,
nkasdali
Microsoft Employee
7 years agoi thought about the measure, but, i'll lose the flag after ! i want to use the field as slicer.
regards
- v-cherch-msft7 years ago
Microsoft Employee
- nkasdali7 years ago
Microsoft Employee
- v-cherch-msft7 years ago
Microsoft Employee
Hi nkasdali
Could you share some simplified assumed sample data instead of table visual to reproduce your scenario?It is very hard to provide the solution without looking at sample data.You can also upload the .pbix file to OneDrive and post the link here. Do mask sensitive data before uploading.
Regards,