Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi team,
need help to get the Result column.
Here the requirement is, Multiple AstDep can associated with only single Asset class.
For Example, {A=Fan,Pen}. Here Fan amd Pen is only for Aset class of A. and they should not be used for Other Asset class
if Fan or pen used for Other Asset class is then the result is "Anamoly".
Asset class:- A and having Ast de{Fan, Pen} with their Cocd:{i,h}
Solved! Go to Solution.
Hi there. If I understood correctly, then Fan and Pen are ANAmoly.
You can build a DAX Column like this:
Result =
VAR __dep = 'Table'[Dep] // current row value
VAR __class_by_dep = // number of classes by current dep in the whole table
CALCULATE(
DISTINCTCOUNT('Table'[Class])
, 'Table'[Dep] = __dep
, REMOVEFILTERS('Table')
)
RETURN
IF (__class_by_dep = 1 , "Not An", "ANAmoly")
// If the current Dep has more than 1 class asign in the whole table, then ANAmoly
I hope that helps,
Happy to help!
Hi there. If I understood correctly, then Fan and Pen are ANAmoly.
You can build a DAX Column like this:
Result =
VAR __dep = 'Table'[Dep] // current row value
VAR __class_by_dep = // number of classes by current dep in the whole table
CALCULATE(
DISTINCTCOUNT('Table'[Class])
, 'Table'[Dep] = __dep
, REMOVEFILTERS('Table')
)
RETURN
IF (__class_by_dep = 1 , "Not An", "ANAmoly")
// If the current Dep has more than 1 class asign in the whole table, then ANAmoly
I hope that helps,
Happy to help!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |