Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Example - if a user inputs date (from table 1), I need to filter table 2 by displaying all the rows which have the range of date to date - 13.
I created a slicer and now I take the value that is inputted in a measure. Table 2 has a date column. I'm just not sure how to display table 2 based on the measure to measure -13 values.
Can you help me out?
Solved! Go to Solution.
Hi @ak1925 ,
No worries. Yes that can be done.
Just create a new measure like below :
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
Hi @ak1925,
You can try something like this based on the sample data below:
Table 1
Table 2
Create a measure on Table 2 that takes the selected value from Table 1 and filters Table 2 using that.
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
Hey, thank you so much for replying!
I see what you've done. Is there anyway to get 14 - 27th dates in a table according to your example above?
Hi @ak1925 ,
No worries. Yes that can be done.
Just create a new measure like below :
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂
I'm not sure what I'm doing wrong. But when I do the same thing, I don't get the same results.
I even made the same dummy data as you did to check. I created _val in the second table
This is what happens.
I don't know why _dtmin and _dtmax are taking the selected dates because i did - _dtmin = MIN(SampleData[Date})
Can you tell me what I'm doing wrong please? Thank you
Hi @ak1925 ,
Create the measures as follows :
Hey, thanks for the reply. I did exactly as told. But even then when I select 27th, I see all the values.
Also, if I had to save this filtered table and then join with another table and display that in the report - can I do that?
so, everytime a user selects a date, I filter the table and perform a join with another table and display that in the report. Is this possible?
Hi @ak1925 ,
You don't need to save the table. You can smply create a relationship between Table2 and the other table and drag and drop columns from the other table into your visual. The values in the otehr table will be filtered automatically based on the relationship you've created.
Kind regards,
Rohit
Thank you so much! I'm going to try this out right now!
Thank you for replying. But doesn't that just filter the table such as the rows will represent the date selected?
I want to display the rows that are in the range of date - 13 and date
Hi @ak1925
Build one date table and connect them through date column like below. if you use the date table date column in slicer then table 2 results will automaticlly filtered for the selected date.
Thanks
Hari
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
95 | |
76 | |
65 | |
51 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |