Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
hi,
a basic quick question,
if I have a column A , and column A returns either 'b' and 'c', but I want to show them both on a pie chart,
how do I go about it?
I have applied
bA = (tablename[A] ), 'b'
cA = (tablename[A] ), 'c'
where am I wrong?
Solved! Go to Solution.
Proud to be a PBI Community Champion
Thanks,
for some reasons I still get syntax error on the logic but I belive this is what I need,
Hi atrinhatra,
A pie chart at least needs two columns, value column and legend column, if columnA is a category column, put columnA to legend field and another column to value field.
Regards,
Jimmy Tao
You may have missundrestood my question.
columnA returns 'yes' or 'no'
but I want to show if columnA = 'yes' show 'pass'
if columnA = 'no' show 'failed'
another word , I am asking the DAX syntax of above
@Anonymous Is this what you are looking for ? Try this as a new column
Flag = SWITCH(TRUE(),Table[ColumnA]="Yes","Pass",Table[ColumnA]="No","Failed")
Proud to be a PBI Community Champion
Thanks, Yes thats what I am after, however what does FLag represents? the code gives an error " THE syntax for 'FLag' in incorrect, (DAX(..........
Proud to be a PBI Community Champion
Thanks,
for some reasons I still get syntax error on the logic but I belive this is what I need,
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |