The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I need an urgent help.
I have a month and year filter, which linked to the Date table.
I have another table A which is not linked to the date able and it has a Start date and End date.
Now I want to filter table A where the selected Year and Month lies in between the Start Date and End Date.
Please help me.
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Could you tell me if your problem has been solved? If it is, kindly mark the helpful answer as a solution if you feel that makes sense. Welcome to share your own solution. More people will benefit from here.
Best Regards,
Xue
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
I create a sample to calculate total values when the selected date is between start date and end date. You can reference it to modify yours.
Table = CALENDARAUTO()
Measure = VAR a = CALCULATE ( SUM ( Table1[values] ), FILTER ( Table1, MAX ( 'Table'[Date].[Year] ) = Table1[START_DATE].[Year] ) ) VAR b = CALCULATE ( SUM ( Table1[values] ), FILTER ( Table1, MAX ( 'Table'[Date] ) <= Table1[END_DATE] && MAX ( 'Table'[Date] ) >= Table1[START_DATE] ) ) RETURN IF ( ISFILTERED ( 'Table'[Date].[Year] ), IF ( ISFILTERED ( 'Table'[Date].[Month] ), b, a ), SUM ( Table1[values] ) )
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
77 | |
71 | |
48 | |
39 |
User | Count |
---|---|
137 | |
108 | |
69 | |
64 | |
58 |