Forum Discussion
Filtering a Table based on Selection
- 3 years ago
Nice day.
Consider using a slicer visualization with more than or relative date for the expected outcome - 3 years ago
Dear CharlotteCity12 ,
Please find below my solution ,maybe there is more performant way.
create a table like the below:
then link this table to the calender table when you have the year date like below:
please make sure that the relation in both direction.
so you will get the desired result as below:
again I don't know if this is the most effective solution , But I guess it gives you what you need.
mark it as solution if it's solved your question please.
- Anonymous3 years ago
Hi CharlotteCity12 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a year dimension table and apply the year field on the slicer
2. Create a measure as below to judge which year should display
Flag = VAR _selyear = SELECTEDVALUE ( 'Years'[Year] ) VAR _curyear = SELECTEDVALUE ( 'Table'[Year] ) RETURN IF ( _curyear >= _selyear, 1, 0 )3. Create a visual and apply a visual-level filter with the condition(Flag is 1)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Nice day.
Consider using a slicer visualization with more than or relative date for the expected outcome
Hi CharlotteCity12 ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want.
1. Create a year dimension table and apply the year field on the slicer
2. Create a measure as below to judge which year should display
Flag =
VAR _selyear =
SELECTEDVALUE ( 'Years'[Year] )
VAR _curyear =
SELECTEDVALUE ( 'Table'[Year] )
RETURN
IF ( _curyear >= _selyear, 1, 0 )
3. Create a visual and apply a visual-level filter with the condition(Flag is 1)
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards