Forum Discussion
Reference the field parameter in dax measures to dynamically change the visuals
Hi,
My requirement is to use columns from field parameter to dynamically change the visual
Field parameter table is as below:
The columns Category, Category Main are calculated columns that are used in slicer buttons in visual.
Now what I want to achieve is, when I click the Target button, and Units or cost I should have corresponding values dynamically selected in the below visual. Similarly when i select the Budget Cost/Units it should change the visual.
The line Y-axis of the above visual works perfectly as brought in the Parameter directly. But for column y-axis I have two things to be taken care of
i)Actual
ii)Forecast
I had tried to tweak the forecast measure but its not dynamically changing the values, The forecast measure consist of 2 measures (preforecast & forecast)
---------
Thanks in advance!
SergeiBaklan
If with fields parameter - I'd create two parameters tables, one for the measures shown in lines, and another one for the measures shown in columns.
On the top two simple calculated tables, for the Category and Category Main used for slicers. Like this
With that you may slice both columns and lines with the same slicers.
I simply duplicated Parameter 2 table into Parameter 3 one. Thus the same measure in line and columns and blanks are not cleaned.
File is here Portfolio 6 latest.pbix
I didn't dig so far, some later. As an idea you may use calculation group to substitute measures used in columns. Details are here Using calculation groups to selectively replace measures in DAX expressions - SQLBI
If with fields parameter - I'd create two parameters tables, one for the measures shown in lines, and another one for the measures shown in columns.
On the top two simple calculated tables, for the Category and Category Main used for slicers. Like this
With that you may slice both columns and lines with the same slicers.
I simply duplicated Parameter 2 table into Parameter 3 one. Thus the same measure in line and columns and blanks are not cleaned.
File is here Portfolio 6 latest.pbix
- Excellove15Iron Contributor
Hi SergeiBaklan
Apologise for the delay, & thanks for your quick response!
This really worked like a wonder and thanks for the awesome solution
You always come to my rescue and thanks once again!
Please let me know if i can do anything for you
Excellove15 , you are welcome, glad to help