Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
I have a slicer that contains a date hierarchy. Additionally, I have a table visual.
The table visual is set to have no filter actions when the slicer is selected (using the edit interactions option).
However, in my table visual I want to show data for the previous month of the selected value in the slicer.
The slicer date values come from a separated date table (tbl_dates).
Using the following measure I would like to get the data from the master_actuals table for the previous month of my selection.
Happy for any help.
Make sure that there is no relationship between your dates table and the master fact table, then turn interactions between the visuals. That way no filter will be applied to the fact table, but you can still use SELECTEDVALUE and your existing code should work.
Thanks for the response.
I would like to get it work even with a relationship between the two tables as it is a convenient filter for other visuals based on a date.
You will need to enable interaction between the visuals, otherwise the selected value from the slicer will never be passed into the target visual. If the relationship needs to be present for other visuals then you will need to modify any measures used in the target visual, possibly by using a calculation group, to disable the relationship or otherwise override it.
User | Count |
---|---|
16 | |
14 | |
13 | |
12 | |
11 |
User | Count |
---|---|
19 | |
16 | |
15 | |
11 | |
9 |