March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi all,
I have a sales analysis report and I am looking for a simple way to conditionally display a column in a matrix. This because there are instances where column margin should not be displayed. The ideal would be a button or a yes/no switch. Is this anynow possible??
Thanks
C.
Solved! Go to Solution.
Hi,
A simple solution may be to create a bookmark and use a button to switch between the visual with/without the column.
You can do this by:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Hi,
this is the project with the solution to your problem.
https://we.tl/t-VSTDQvAzTN
You have to work on the code of the parameter that is related with the main dataset table.
You can choose description, Columns or Measures and order wich you want to show in base of what paramter is selected.
IF I HELP YOU TO RESOLVE YOUR PROBLEM PLEASE MARK IT AS A SOLUTION
Regards,
To try in your model you have to create A PARAMETER FIELD. Than you can work on the code!
I hope you'll find the aswers to your question!
Enjoy
Hi,
you can choose all the column for the selected parameter.
This is the code:
For every line you have Description, Measure or Column, OrderNumber, Referenced ParameterFiled
Hi,
this is the project with the solution to your problem.
https://we.tl/t-VSTDQvAzTN
You have to work on the code of the parameter that is related with the main dataset table.
You can choose description, Columns or Measures and order wich you want to show in base of what paramter is selected.
IF I HELP YOU TO RESOLVE YOUR PROBLEM PLEASE MARK IT AS A SOLUTION
Regards,
Thanks @lucadelicio, your solution looks very good. I will test it in my scenario but I believe will be working great.
Thanks!
C.
To try in your model you have to create A PARAMETER FIELD. Than you can work on the code!
I hope you'll find the aswers to your question!
Enjoy
Hi @lucadelicio , all implemented and working; thank you. One question is it possible with a single selection in the parameter's slicer to activate/deactiva two columns at once? I mean select "Margin Y/N" and have two columns activated/deactivated: Margin $ and Margin %. Is this anyhow possible?
Hi,
you can choose all the column for the selected parameter.
This is the code:
For every line you have Description, Measure or Column, OrderNumber, Referenced ParameterFiled
Hi @lucadelicio , this works perfectly, thanks.
One last point: what if I need to have my slicer to either display the two fields or.... nothing?! Is there a way? Can I have sort of a Button either diplaying the two fields or nothing?
Hi @lucadelicio maybe you can answer also to my last question above (either two fields displayed or nothing)?
Hi,
A simple solution may be to create a bookmark and use a button to switch between the visual with/without the column.
You can do this by:
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Wow, this works too. Very simple.
Thanks!
C.
Hi,
upload on https://wetransfer.com/ the pbix file and post an image in wich you explain the desire result.
I will help you!
Thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |