Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello! My Goal: Capture the rows shown below where the PCR_ID has at least one non NV value entered into the columns "PulseOximetry" and "respiratory_rate" so I can identify if a healthcare measure was met.
Since one PCR_ID can have several Vital Signs done in one call, I need to count the ones where both where done but not the ones where just one is done and not the other. The EMT can log these in different row so that is my problem- I need to filter out the rows that do not have both PULSEOXIMETRY and Respiratory filled in but on some rows with the same PCR_ID they are logged on different lines.
EX: Lines 239 - measure met = keep
Lines 245 - Measure not met = Filter
Lines 13 and 14 = Measure met between two rows - Keep
Solved! Go to Solution.
Hi @Anonymous ,
Try the following formula:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WsrRQ0lEyMgESiYlKsTrRSoYGBkCOIUg4KQksYmkJUmKAEPALszU3B/GNTYFEcjKSPiMjhAhcGdiOlBSEYXAZqCCcD2ekpirFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Pulse_Oximetry = _t, Respiratory_Rate = _t, PCR_ID = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Pulse_Oximetry", type text}, {"Respiratory_Rate", type text}, {"PCR_ID", type text}}),
#"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
#"NV Table" = Table.FindText(#"Added Index","NV"),
#"Difference" = List.Difference(#"Added Index"[Index],#"NV Table"[Index]),
#"Contain Index" = Table.SelectRows(#"Added Index",each List.Contains(#"Difference",[Index])),
#"Contain PCRID" = Table.SelectRows(#"Added Index",each List.Contains(#"Contain Index"[PCR_ID],[PCR_ID]))
in
#"Contain PCRID"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Has your problem been solved? If it is solved, please mark a reply which is helpful to you.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
Hi @Anonymous ,
Has your problem been solved? If it is solved, please mark a reply which is helpful to you.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
Hi @Anonymous ,
Try the following formula:
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WsrRQ0lEyMgESiYlKsTrRSoYGBkCOIUg4KQksYmkJUmKAEPALszU3B/GNTYFEcjKSPiMjhAhcGdiOlBSEYXAZqCCcD2ekpirFxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Pulse_Oximetry = _t, Respiratory_Rate = _t, PCR_ID = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Pulse_Oximetry", type text}, {"Respiratory_Rate", type text}, {"PCR_ID", type text}}),
#"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
#"NV Table" = Table.FindText(#"Added Index","NV"),
#"Difference" = List.Difference(#"Added Index"[Index],#"NV Table"[Index]),
#"Contain Index" = Table.SelectRows(#"Added Index",each List.Contains(#"Difference",[Index])),
#"Contain PCRID" = Table.SelectRows(#"Added Index",each List.Contains(#"Contain Index"[PCR_ID],[PCR_ID]))
in
#"Contain PCRID"
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
37 | |
35 |