Change the Column or Measure Value in a Power BI Visual by Selection of the Slicer Parameter Tabl

preview_player
Показать описание
The trick I am about to explain in this video is used in many samples, and it is not a new trick. However, it is very useful, and many Power BI users are still not aware of it. Let’s say you have to columns: Cost, and Sales, and in one chart, you want to show only one of the measures above, but the selection to be done in a slicer. You want the user to select either the cost or sales and then see that value in the visual. Another example is that you have all the time intelligence calculations as measures, and you want to have a slicer to select what to show as the value in the chart. In this video, I’ll explain how you can do that.
Download the Power BI file from my article below:

*******************

Want to learn about Power BI or AI? or take your Power BI and AI knowledge to the next level for building reports? Check out our courses in RADACAD Academy for all aspects of Power BI and AI.

*******************

********
CONNECT with US!
********

********
Рекомендации по теме
Комментарии
Автор

Used to do column swap in tableau using parameters. Was looking for this

tushaar
Автор

This doesn't work with columns, only with measures. I get following error with [Sales All Measures] DAX - "A single value for column 'Y' in table 'X' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

alimkumykov
Автор

What a good explanation, I now also use this trick.

one question:
Is it possible that the formating can differ per measurement. For example, I have currency as a measurement, but with other measurements it must be in percentages? Is there a solution for that?

brief
Автор

How the column title in matrix visual can also change based on selection

AbhayGadiya
Автор

This is very helpful. Solved a problem that i have been hitting my head with.
However, is it possible to implement this for multiple selection in the slicer?
Can we switch among columns without creating aggregated measures, and switching among those measures?
thanks

sati
Автор

Brilliant, best explanation Ive come across

daveb
Автор

Thanks Reza for giving us useful information.

Kmsbi
Автор

Hi there, nice video! How can I reference columns, rather than measures? The fields I need to use cannot be aggregated.

anthonysweet
Автор

Thanks a lot for such an incredible knowledge sharing!

nasimmiremad
Автор

Hello Radcad! thank you for this but I made use of your technics and creating a dynamic column with DAX measure but when I am putting it on the axis within the bar chart it only shows the first selection even if I select something else, Kind assist by providing more details on how to do it. Thank for your support and time.

JuniorDIEKA
Автор

Great tutorial! What would you recommend if we have 3 slicers interacting? probably creating an specific DAX formula for each combination might be a pain on the neck... thank you!

jamespaz
Автор

Helped me big time!! You made my day. God bless you!

SAREL
Автор

Hi,
Can you create a table as per slicer selection .. consider I'd column in a rows like 1, 2, 3, 4. And a slicer using this I'd column.. now if I select I'd from slicer 3 then a table will be created which has all data with I'd 3. Please let me know if requirement is not clear

aryansena
Автор

Nice tutorial. One question, how can you select more values? Like in the Switch: 1, [(XYZ)A] && [(XYZ)B], ? Could you help me plz?

mereskhdigi
Автор

Thank you so much for the amazing content.

thaiscristinasouza
Автор

Great and very useful video - thanks a lot!

NorwayAerials
Автор

Hi Reza, is there a way to change the measure name dynamically . Like in your video when you select Year to date or Quarter to date the measure name should change accordingly instead of " All Measures". I understood how to change the title dynamically, can the measure name also be changed dynamically?

rajdivate
Автор

This is fantastic, thank you so much. How do I do this for switching between dimensions? Example would be picking between "City" or "County", I can not create a measure for these since there is no aggregation .

amiryazdani
Автор

Thanks! This is quality material. Thanks!

rodrigomachado
Автор

Thanks for the video. I would like to have the legend (column series) to be selected from a dropdown using the same logic you used. Any suggestions how to approach it?

aminebouhouche