Forum Discussion
PowerBIBeginer
2 years agoHelper V
Logic / Dax require
Hi All, Query which I'm asking I'm not sure whether its possible in power bi or not. Let me narrate the exact condition. Col A - Customer name Col B - Line of Business (could be anything) C...
Anonymous
2 years agoNot applicable
Hi PowerBIBeginer ,
I made simple samples and you can check the results below:
Measure = var _t = ADDCOLUMNS('Table',"Same",COUNTAX(FILTER(ALL('Table'),[Type]<>"NLP"&&[Customer Name]=EARLIER([Customer Name])&&[LoB]=EARLIER([LoB])),[Type]))
var _t2 = IF(MAX('Table'[Type])="Excess",1,0)
RETURN IF(MAXX(_t,[Same])<>1&&_t2=1,1,0)
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
PowerBIBeginer
2 years agoHelper V
Hi, one query please.. How do I add this dax in "Transform Data - applied steps"? I'm basically working there on eliminating steps. Do I need to create this in "Advance editor" under the steps the advaance editor? Pls suggest
- lbendlin2 years agoSuper User
You don't. DAX code is used in the User interface phase. Transform steps are written in Power Query, in the data acquisition and transformation stage. Those are separate processes.