Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I have a table "tableA" Within this table I have a column source with "Y" and "N" values.
I need to create a Measure (not calcuated column) to create a mapping.
Y = Yes
N = No.
I'm trying the switch statement but my column does not show.
switch(tableaA.source,"Y","Yes", "No"). What am I doing wrong?
Solved! Go to Solution.
@SirBI , In case of measure you can use aggregated columns
example
switch(Max(tableaA[source]),
"Y","Yes",
"No")
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 20 | |
| 11 |
| User | Count |
|---|---|
| 62 | |
| 55 | |
| 47 | |
| 44 | |
| 37 |