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
Anonymous
Not applicable

Working with 2 Dates

Hello guys,,
ive been wondering how can i do these

I have a date "Request date" and "Completion date"

I want to see the total request in a month and see the no of completed request that are not rely on request date)
like 

MONTH-----------NO of Request ----------No of COmpleted
january-----------------50--------------------------45
February----------------60--------------------------65



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

Hi @anthonycarreon,

 

In you scenario, Userelationship function should help.

Here’s my sample data:

1.PNG

Please check following steps as below:

1. Manage relationships between two tables:

3.PNG

2. Create measures:

    no of complete = CALCULATE(COUNT('Table'[complete]),USERELATIONSHIP('Date'[Date],'Table'[complete]))

    no of request = CALCULATE(COUNT('Table'[request]),USERELATIONSHIP('Date'[Date],'Table'[request]))

3. Result would be shown as below:

2.PNG

BTW, Pbix as attached. Hopefully works for you.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @anthonycarreon,

 

In you scenario, Userelationship function should help.

Here’s my sample data:

1.PNG

Please check following steps as below:

1. Manage relationships between two tables:

3.PNG

2. Create measures:

    no of complete = CALCULATE(COUNT('Table'[complete]),USERELATIONSHIP('Date'[Date],'Table'[complete]))

    no of request = CALCULATE(COUNT('Table'[request]),USERELATIONSHIP('Date'[Date],'Table'[request]))

3. Result would be shown as below:

2.PNG

BTW, Pbix as attached. Hopefully works for you.

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Thanks for you Feedback Sir, 😉
kudos 

kentyler
Solution Sage
Solution Sage

ok, assuming requests and completions happen at different times, they should be in 2 different fact tables. those tables will each have a date column.

if you add a dimension table that is a calendar table you can relate it to both fact tables

if you then make a report and create a slicer on the calendar table, when you select a month in your slicer it will filter both requests and completions to the same month

if you google "calendar table" on youtube you will find lots of videos explaining how to use one, some of which include downloads of a free example 
https://www.youtube.com/watch?v=zXZAZrUwUe8&t=38s





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


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.