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

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.

Reply
basel777
Advocate II
Advocate II

Finding Average Days Between Two Dates in Q&A Visual

Hi All,

 

I have a Q&A visual that includes start and end dates. I would like to identify how to phrase my questions in the visual, so that I can find out how many days are between two dates. However, I'm having a hard time figuring out what phrases I should use to get this kind of result. 

 

I've provided an example of what my dataset looks like below:

 

IDStart DateEnd Date

10001

01/01/202107/31/2021
1000202/01/202107/31/2021
1000303/01/202109/30/2021
1000407/01/202109/30/2021
1000507/01/202112/31/2021

 

When I search in the visual, I have tried different iterations of "Show me the average days between Start Date and End Date" or "How many days are there on average between Start Date and End Date for each ID". My Date fields are in Date type and my ID is in whole number type. 

 

Any help is appreciated!

 

Michael

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @basel777 ,

You could click here to learn limitations of Power BI Q&A.

And if you want to show the average  form start date to end date,you could use the below dax to create a new column:

datediff = DATEDIFF('Table'[Start Date],'Table'[End Date],DAY)

Then use Q&A:

vluwangmsft_0-1628488996143.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @basel777 ,

You could click here to learn limitations of Power BI Q&A.

And if you want to show the average  form start date to end date,you could use the below dax to create a new column:

datediff = DATEDIFF('Table'[Start Date],'Table'[End Date],DAY)

Then use Q&A:

vluwangmsft_0-1628488996143.png

 

Wish it is helpful for you!

 

Best Regards

Lucien

The link and suggestion were what I needed. Thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors