Forum Discussion
Chitemerere
6 years agoResponsive Resident
Chart creation from Survey Data
I have the following data coming from a survey: How can i create a chart which clearly shows which countries are "ISO 17025 Certified" and which countries are "WHO prequalified". Thanking ...
- 6 years ago
Hi Chitemerere ,
one part of the solution with Power Query, the other with DAX and conditional formatting.
You can download my solution pbix-file until ...
One part of the solution with Power Query, the other with DAX and conditional fomatting
Regards FrankAT
Chitemerere
6 years agoResponsive Resident
Thank you very much, most appreciated. Would be kind enough to explain the Power Query Process?
Regards,
Chris
FrankAT
6 years agoCommunity Champion
Hi Chitemerere ,
here is my explanation of the Power Query part:
- Duplicating the NQCLStatus column.
- Adding a custom column: How long is the string in column NQCLStatus?
- Replaced the substring "ISO 17025" with "" inside the NQCLSTatus column. If the string contains this substring the original textlength is now shorter.
- Adding a custom column: How long is the shortened NQCLStatus string?
- In the duplicated column NQCLStatus - Copy I replaced the substring "WHO".
- Adding a custom column: How long is the shortened NQCLStatus string in column NQCLStatus - Copy. Same as 3..
- Adding conditional column ISO 17025 Certified: If the TextLengthFull <> NewTextLengthISO then 1 otherwise 0.
- Adding conditional column WHO prequalified: If the TextLengthFull <> NewTextLengthWHO then 1 otherwise 0.
- Removed unnecessary columns.
- Changed data type.
That's it.
Regards FrankAT
- Chitemerere6 years agoResponsive Resident
Many thanks, got it.
Regards,
Chris
- Chitemerere6 years agoResponsive Resident
Hi, would you mind redacting country names from the solution tables in the community site?
Regards,
Chris