We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
(CASE WHEN UO.SALDEPTGRP IN 'SSH' THEN 'ASS'
WHEN UO.SALDEPTGRP = 'ENDÜSTRİ-GIDA' THEN 'INDUSTRY-FOOD'
WHEN UO.SALDEPTGRP = 'ÇEVRE-ENERJİ' THEN 'ENVIRONMENT-ENERGY'
WHEN UO.SALDEPTGRP = 'ZEYTİNYAĞI' THEN 'OLIVE OIL' END) AS SALDEPTEGRP,
Why doesn't work it in power bi? I mean I couldn't see INDUSTRY-FOOD, ENVIRONMENT-ENERGY,OLIVE OIL in the columns which SALDEPTEGRP topic.
Solved! Go to Solution.
@AKARSEVGI , Power BI Dax you have to use switch
Switch( True() ,
UO.SALDEPTGRP= "SSH" , "ASS"
,UO.SALDEPTGRP = "ENDÜSTRİ-GIDA" THEN "INDUSTRY-FOOD"
,UO.SALDEPTGRP = "ÇEVRE-ENERJİ" THEN "ENVIRONMENT-ENERGY")
Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56
WHEN UO.SALDEPTGRP = 'ZEYTİNYAĞI' THEN 'OLIVE OIL' END) AS SALDEPTEGRP,
No, I want to fix it in power query? How can I?
@AKARSEVGI , Power BI Dax you have to use switch
Switch( True() ,
UO.SALDEPTGRP= "SSH" , "ASS"
,UO.SALDEPTGRP = "ENDÜSTRİ-GIDA" THEN "INDUSTRY-FOOD"
,UO.SALDEPTGRP = "ÇEVRE-ENERJİ" THEN "ENVIRONMENT-ENERGY")
Switch-Case statement of #PowerBI: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56
WHEN UO.SALDEPTGRP = 'ZEYTİNYAĞI' THEN 'OLIVE OIL' END) AS SALDEPTEGRP,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 38 | |
| 33 | |
| 17 | |
| 17 |
| User | Count |
|---|---|
| 67 | |
| 62 | |
| 38 | |
| 34 | |
| 22 |