Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217177

DAX to change field/column based on slicer?

$
0
0

Hey guys,

Putting together a project which will mash up our company data with publicly available data from congress. I am putting together a little information section of the report which will have the Name, Party, State etc. of the selected Congressman. But I do not want the text to be populated unless a selection on the filter has been made. I tried the below with a calculated column, but it didn't work:

 

Name_Dynamic = if(COUNTROWS('Legislators - ALL API') > 1, "Select a Congressman", 'Legislators - ALL API'[name])

 

any ideas? Thanks.


Viewing all articles
Browse latest Browse all 217177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>