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
jacob2102
Helper II
Helper II

Double dates

Hi,

 

I have a customer's table that includs different dates. These dates refer to the customer's registration and withdrawal.

For the report, I need to create different KPI's to obtain anual values, changing the year with data segmentation.

What date do I have to use to know the customers's registrations and withdrawal in the selected year? At this moment, If I use one of this dates the resoult is filtered with both dates. On the other hand, I try create a date table, independent to customer table, but I need creat a relationship between the tables and I obtain the same error if the relation is through one of this dates.

 

Do you know how can I solve it?

 

Thanks in advance.

1 ACCEPTED SOLUTION

Hi @jacob2102 

 

Please see the attached file with the solution.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @jacob2102 

 

Can you provide a data sample + expected outcome?

 

 

Best Regards,
Mariusz

Please feel free to connect with me.
Mariusz Repczynski

 

 

Hi @Mariusz ,

 

This is an example:

 

Account:

Account_IdNameCreateOnCloseOn
A1Account123/05/200814/10/2010
A2Account215/06/2010 
A3Account321/01/201015/12/2010
A4Account413/08/2010 
A5Account515/10/2019 

 

Contact:

Contact_IdNameEmailAccount_Id
C1Contact1contact1@contact.comA1
C2Contact2contact2@contact.comA2
C3Contact3contact3@contact.comA3
C4Contact4contact4@contact.comA4
C5Contact5contact5@contact.comA5
C6Contact6contact6@contact.comA3
C7Contact7contact7@contact.comA4
C8Contact8contact8@contact.comA2
C9Contact9contact9@contact.comA5

 

For the expected outcome, I want to create a data segmentation with a date and when I filter for any year of the selector get a result for the customer registrations and withdrawals of the year. I want to provide two cards in the report, one of them for customers registrations and the other for customer withdrawals.

For example, If I select "year 2010" in data segmentation, I want to obtain "3" for customers registrations and "2" for customer withdrawals.

 

I hope that this example let you understand the situation. 

 

Best regards.

Jacob

Hi @jacob2102 

 

Please see the attached file with the solution.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

Hi @Mariusz ,

 

Thanks so much for your answer and solution.

Now I can display both KPI in the same report.

 

Best regards,

Jacob

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.