Forum Discussion
How can I switch the measure a chart or table is using based on a slicer choice?
Good Day,
We are creating a Power BI report where the data source is a live SSAS Tabular Cube.
We would like to create a number of pages within the report where the report user can switch which measure they are looking at by clicking on the measure name in say a chiklet slicer. So the whole page would "swap" it's selected Measure to the one selected.
Can anyone point me in the right direction please?
If you mean something like this:
Then it's all in the data model. These are the (simplified) two main tables supporting the report above:
In our case, we have three similar but separate pages (and three corresponding measure tables), because the measures have different data types (percentage, currency, and whole number).
Hi ScottG
Please refer to below link and let me know if you have any further queries.
http://www.bipatterns.com/dynamic-powerbi-reports-via-dax/
Measures on a slicer is well explained in this.
8 Replies
- asocorro
Skilled Sharer
If you mean something like this:
Then it's all in the data model. These are the (simplified) two main tables supporting the report above:
In our case, we have three similar but separate pages (and three corresponding measure tables), because the measures have different data types (percentage, currency, and whole number).
- ScottG
Advocate II
So far I have been able to include the Measure Table with Measure Name as a slicer, however how does this relate back to the fact tables in this case? I.E. how does Power BI know to filter to that column or calculated measure for the fact table?
My appologies as I mentioned I am quite new to Tabular.
- anithat
Resolver II
Hi ScottG
Please refer to below link and let me know if you have any further queries.
http://www.bipatterns.com/dynamic-powerbi-reports-via-dax/
Measures on a slicer is well explained in this.
- ScottG
Advocate II
Thank you for the suggestion I will attemp this later tonight.
So in this case the Measure and Measure Rates tables become a dimensions?
Is there any DAX required for this approach? Sorry quite new to DAX (done lots of MDX)...
Is there no way to put all the measures (different formats) in one slicer so that format is drawn from the actual measure's formatting in the SSAS Cube?