gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
Power BI Card: Need to display the "Accountable" as blanks if All selected
- User
Power BI Card: Need to display the "Accountable" as blanks if All selected
- Assistant
To display "Accountable" as blanks when all options are selected, you can use a DAX expression in the Card visual in Power BI. Here's how you can achieve this:
- Open your Power BI report and go to the page where you have your card visual.
- Select the card visual and go to the "Visualizations" pane on the right side.
- Under the "Fields" tab, drag and drop the "Accountable" column/field onto the "Values" section of the card visual.
- Now, go to the "Format" tab in the "Visualizations" pane.
- Scroll down to the "Data labels" section and expand it.
- Enable the "Data label" toggle if it's not already enabled.
- Click on the "Data label text" dropdown and select "Custom".
- In the custom text box, enter the following DAX expression:
=IF( COUNTROWS(ALLSELECTED(Table[Accountable])) = DISTINCTCOUNT(Table[Accountable]), BLANK(), CONCATENATEX(DISTINCT(Table[Accountable]), Table[Accountable], ", ") )Make sure to replace "Table" with the actual name of your table or data source. This expression checks if all options are selected and returns a blank if true, otherwise, it concatenates the distinct selected values with comma separation.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.