Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I would like to create a new Pivot Table, What DAX can make it
Orig Table
Device | Software |
a | s1 |
a | s2 |
b | s1 |
Pivot Table
Device | s1 | s2 |
a | TRUE | TRUE |
b | TRUE | FALSE |
Solved! Go to Solution.
Hi @Jimmy_hu
You can create a calculated table to return the table you want .
New Table =
var _summar=SUMMARIZE('Table','Table'[Device], "combine", CONCATENATEX('Table',[Software],","))
var _t=ADDCOLUMNS(_summar,"s1",IF(CONTAINSSTRING([combine],"s1"),TRUE(),FALSE()), "s2",IF(CONTAINSSTRING([combine],"s2"),TRUE(),FALSE()))
return SUMMARIZE(_t,[Device],[s1],[s2])
The final result is as shown :
I have attached my pbix file , you can refer to it .
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jimmy_hu
You can create a calculated table to return the table you want .
New Table =
var _summar=SUMMARIZE('Table','Table'[Device], "combine", CONCATENATEX('Table',[Software],","))
var _t=ADDCOLUMNS(_summar,"s1",IF(CONTAINSSTRING([combine],"s1"),TRUE(),FALSE()), "s2",IF(CONTAINSSTRING([combine],"s2"),TRUE(),FALSE()))
return SUMMARIZE(_t,[Device],[s1],[s2])
The final result is as shown :
I have attached my pbix file , you can refer to it .
Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, works perfect. Thand you very much
User | Count |
---|---|
48 | |
41 | |
19 | |
14 | |
13 |
User | Count |
---|---|
102 | |
55 | |
28 | |
19 | |
14 |