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
MC14
New Member

Min date for every client in a matrix live connect

Hello everyone,

 

I am new to PowerBI live connect. Below you can see a table, where I want to find out for each client the min date for category x.

 

 

Group clientcategory1date     
1ax01.01.2020     
1by03.02.2020     
1cx02.01.2020     
1az...     
2dx    

 

 
2et    

 

 

When I visualize this in a matrix, where I have the group and client on the rows and the columns show the date, it takes the date 01.01.2020 for every client. 

group 1min date 
a01.01.2020 
c

01.01.2020

 

However, what I want is to get the min date of each client separately, i.e.

 

group 1min date
a01.01.2020
c02.01.2020

 I tried to solve this by using Keepfilters, but it did not work.

Thank you in advance.

1 ACCEPTED SOLUTION
onurbmiguel_
Super User
Super User

Hello MC14

can you try this measure: 

Client Date min = 
var _client = SELECTEDVALUE('Table'[client])
var _value = 
    CALCULATE(
        MIN('Table'[date]),
        filter(all('Table'),'Table'[client]=_client)
    )
return 
_value

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


View solution in original post

2 REPLIES 2
onurbmiguel_
Super User
Super User

Hello MC14

can you try this measure: 

Client Date min = 
var _client = SELECTEDVALUE('Table'[client])
var _value = 
    CALCULATE(
        MIN('Table'[date]),
        filter(all('Table'),'Table'[client]=_client)
    )
return 
_value

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Thank you for your response! It worked !

Best Regards MC

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.