Forum Discussion
Nursen
2 years agoNew Member
How to rename the legend while using an SQL Server Database
Hi there, I am using an online SQL Server Database in PowerBI for my dashboard. (So the buttons "New Column" or "New Table" are inactive, and can't be used.) I have a pie chart using the value f...
- 2 years ago
Hi Nursen
It seems that you are using a Direct Query connection to the SQL Server, is Using the Import an option? This will open all features within Power BI.
Otherwise adapt your select statement in SQLSELECT CASE WHEN [Status] = TRUE THEN 'Done' ELSE 'Not Done' END as "Status" FROM Table1Joe
Did I answer your question? Mark my post as a solution!
Joe_Barry
2 years agoSolution Sage
Hi Nursen
It seems that you are using a Direct Query connection to the SQL Server, is Using the Import an option? This will open all features within Power BI.
Otherwise adapt your select statement in SQL
SELECT
CASE WHEN [Status] = TRUE THEN 'Done' ELSE 'Not Done' END as "Status"
FROM
Table1
Joe
Did I answer your question? Mark my post as a solution!