The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Can someone help me wherein I created a table namely Reporting Start and Reporting End and if I enter the desired day/month/year on any of the cells then the fact table will be filtered?
Condition: Reporting Start Date will be 3 previous years of beginning of the current year / Reporting End Date will be 2 future years of the end of the current year
Thanks...tksnota
Solved! Go to Solution.
Hi @tksnota, Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.
Hi @tksnota, Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.
Hi @tksnota , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details. Thank you.
Hi @tksnota , thank you for reaching out to the Microsoft Fabric Community Forum.
To achieve this, you can use DAX (Data Analysis Expressions) in Power BI to create dynamic date filters based on your Reporting Start and Reporting End dates.
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Thanks...I need the report to submitted via excel with the capability of doing the refreshed query based on the reported start and end entered by the user which can be 3 years ago or 2 years in the future with months being variable.
Will that be possible in Power BI and convert it to excel?
Thanks...tksnota...
Hi @tksnota , thank you for reaching out to the Microsoft Fabric Community Forum.
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Thanks Again...
The refreshed of query will only happen when I'm logged in the company's intranet and it didn't allow the use of Powerbi so if the report and start date can be done via excel, power query or sql then the refreshed might happen
Hi @tksnota , thank you for reaching out to the Microsoft Fabric Community Forum.
You can use Power Query and Excel formulas to dynamically filter your data based on the Reporting Start and End Dates entered by the user. Here's how you can do it:
Type: Date/Time
Value: =Excel.CurrentWorkbook(){[Name="tbl_ReportDates"]}[Content]{0}[Start Date]
Using SQL Query in Excel (Directly from Database)
If your data is in SQL Server, you can filter it dynamically using Excel's SQL query function.
WHERE Date >= (SELECT StartDate FROM tbl_ReportDates)
AND Date <= (SELECT EndDate FROM tbl_ReportDates)
2. Load -> Table. Now, whenever you change the Start and End Dates in Excel, refresh the query via Data -> Refresh All.
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Hi,
I tried the filter and click 2024 but it doesn't changed the invoice date as shown.
Thanks...tksknota...
Looks like you are using Excel. Have you tried using this option?
Sorry my settings are set to dutch so you need to match the icon's based on your language in Excel.