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.
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 | client | category1 | date | |||||
1 | a | x | 01.01.2020 | |||||
1 | b | y | 03.02.2020 | |||||
1 | c | x | 02.01.2020 | |||||
1 | a | z | ... | |||||
2 | d | x |
| |||||
2 | e | t |
|
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 1 | min date | |
a | 01.01.2020 | |
c | 01.01.2020 |
However, what I want is to get the min date of each client separately, i.e.
group 1 | min date |
a | 01.01.2020 |
c | 02.01.2020 |
I tried to solve this by using Keepfilters, but it did not work.
Thank you in advance.
Solved! Go to Solution.
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
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |