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 All
Please, can anyone really help me to solve my issue. I have already posted my issue few time but no one could give me a solution.
I have the records for a laboratory receiving two type of tests: CC or IA.
So each Accession ID can have:
So i want to unpivot the test type column but doing transpose doesnt help me.
i tried to create a matrix table (Attached pic) so as you can see it returns the count of "CC" and "IA" tests, but my end goal is to
get a tabel with
Accession ID CC IA
and the columns CC and IA should have only binary number i.e if that accession ID has "CC" tests then return 1 else 0. Similarly with IA tests. I dont care about the number, all i care is whether the accession ID has the "CC" test ordered or not.
Solved! Go to Solution.
Also I had alreday creating the two columns CC and IA using If statements as you had suggested above but this was the result i got. As expected it was missing IA and CC common accesion id and returning it as zero
Okay. Then after creating the CC and IA columns, you create one calculated table called "FinalTable" with the following expression.
FinalTable = ADDCOLUMNS(DISTINCT(ActualData[AccessionID]),"CCS",sumx(RELATEDTABLE(ActualData),ActualData[CC]),"IAS",SUMX(RELATEDTABLE(ActualData),ActualData[IA]))
This will create the table as per your requirement.
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 |
---|---|
113 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |