Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
vinayganit
Frequent Visitor

Date fields in Field parameter

Can we use field parameter to select between 2 date fields which are in 2 different tables?Parameters are created and line chart is showing date range as well the value is being aggregated single line and parameter is showing text as type. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @vinayganit ,

 

@audreygerred , thanks for your reply about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:

 

1.Create two tables with different Date range.

 

vlinhuizhmsft_0-1722243402957.jpeg

 

2.Use date fields of two tables as parameters:

 

vlinhuizhmsft_1-1722243541298.jpeg

 

3.Create measures:

 

Date_Measure
=CALCULATE(SUM('financials'[Profit]),FILTER('financials',SELECTEDVALUE('financials'[Date])))

Date2_Measure
= CALCULATE(SUM('financials (2)'[Profit]),FILTER('financials(2)',SELECTEDVALUE('financials (2)'[Date])))

 

4.Create a line chart:

 

vlinhuizhmsft_3-1722243701559.png

 

5.The final results are as follows:

vlinhuizhmsft_4-1722243770685.png

vlinhuizhmsft_5-1722243794041.png

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @vinayganit ,

 

@audreygerred , thanks for your reply about this case. I tried to create a sample data myself based on the user's requirement and implemented the result. Please check if there is anything that can be improved. Here is my solution:

 

1.Create two tables with different Date range.

 

vlinhuizhmsft_0-1722243402957.jpeg

 

2.Use date fields of two tables as parameters:

 

vlinhuizhmsft_1-1722243541298.jpeg

 

3.Create measures:

 

Date_Measure
=CALCULATE(SUM('financials'[Profit]),FILTER('financials',SELECTEDVALUE('financials'[Date])))

Date2_Measure
= CALCULATE(SUM('financials (2)'[Profit]),FILTER('financials(2)',SELECTEDVALUE('financials (2)'[Date])))

 

4.Create a line chart:

 

vlinhuizhmsft_3-1722243701559.png

 

5.The final results are as follows:

vlinhuizhmsft_4-1722243770685.png

vlinhuizhmsft_5-1722243794041.png

Best Regards,
Zhu
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thank you very much . Just a follow up qn please reply when you are free...i want last year and 2 year before actual values which is another table so I have to make measures in the same way without linking to the Datetable right. Anyway really appreciate your efforts

 

audreygerred
Super User
Super User

Hi! This video is great at describing how to set up using two different dates: https://youtu.be/pQ9eSnfAhnc?si=AhxJY-1PrrLw1Ptk





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hey,I really appreciate the effort,thank you but this is different from the context . 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.