Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a one table, that table contain multiple columns and count. I am trying to build final status based on the columns A:G.
ITEM | A | B | C | D | E | F | G | REESULT |
123 | 2 | ONE | ||||||
124 | 4 | 6 | MULTIPLE | |||||
125 | 1 | 1 | 1 | 1 | MULTIPLE | |||
126 | 1 | 1 | MULTIPLE | |||||
127 | 1 | 1 | MULTIPLE | |||||
128 | 1 | ONE | ||||||
129 | 1 | ONE | ||||||
130 | 1 | ONE | ||||||
131 | 1 | ONE | ||||||
132 | 1 | ONE | ||||||
133 | 1 | ONE | ||||||
134 | 1 | ONE | ||||||
135 | 1 | ONE | ||||||
136 | 1 | ONE | ||||||
137 | 3 | 1 | MULTIPLE | |||||
138 | 3 | 1 | MULTIPLE | |||||
139 | 1 | 1 | 2 | MULTIPLE | ||||
140 | 2 | ONE | ||||||
141 | 2 | ONE | ||||||
142 | 1 | 1 | 1 | 1 | MULTIPLE | |||
143 | 3 | 1 | 2 | 8 | 2 | MULTIPLE | ||
144 | 2 | ONE | ||||||
145 | 4 | 2 | 2 | 1 | 1 | MULTIPLE | ||
146 | ||||||||
147 | ||||||||
148 |
I am applying below mentioned DAX and it's working well but it will give a wrong result (Multiple) were columns are blanks (A:G) but desired result is blanks. Please refer 146,147 and 148.
Solved! Go to Solution.
Hi @Saxon10
Modify the DAX to this
Result =
VAR _Count = IF(ISBLANK(Table1[A]),BLANK(),1)+IF(ISBLANK(Table1[B]),BLANK(),1)+IF(ISBLANK(Table1[C]),BLANK(),1)+IF(ISBLANK(Table1[D]),BLANK(),1)+IF(ISBLANK(Table1[E]),BLANK(),1)+IF(ISBLANK(Table1[F]),BLANK(),1)+IF(ISBLANK(Table1[G]),BLANK(),1)
RETURN IF(_Count=1, "One", IF(ISBLANK(_Count), BLANK(), "Multiple"))
Regards
Phil
Proud to be a Super User!
Hi @Saxon10
Modify the DAX to this
Result =
VAR _Count = IF(ISBLANK(Table1[A]),BLANK(),1)+IF(ISBLANK(Table1[B]),BLANK(),1)+IF(ISBLANK(Table1[C]),BLANK(),1)+IF(ISBLANK(Table1[D]),BLANK(),1)+IF(ISBLANK(Table1[E]),BLANK(),1)+IF(ISBLANK(Table1[F]),BLANK(),1)+IF(ISBLANK(Table1[G]),BLANK(),1)
RETURN IF(_Count=1, "One", IF(ISBLANK(_Count), BLANK(), "Multiple"))
Regards
Phil
Proud to be a Super User!
Hi,
Thank you so much for your help and sorry for the late reply. Your solution is working very well.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |