Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear Experts,
I am trying to summarize the columns based on ID and Name with Min Date.
Here is my data,
ID | Name | Date |
1111 | KMT | 6/1/2023 |
1111 | KMT | 6/2/2023 |
1112 | MMT | 6/2/2023 |
1112 | KKT | 6/2/2023 |
I tried with the summarize function as below dax
6/2/2023 2
even after selecting from slicer.
Please help me to correct my dax funtion.
Regards,
KMT
Solved! Go to Solution.
Hi @KyawMyoTun You can use the following DAX expression
Ticket =
COUNTROWS(
SUMMARIZE(
FILTER(
Sheet1,
[Date] = CALCULATE(
MIN(Sheet1[Date]),
ALLEXCEPT(Sheet1, Sheet1[ID], Sheet1[Name])
)
),
Sheet1[ID],
Sheet1[Name],
"Min Dt", MIN(Sheet1[Date])
)
)
The above expression should give you the expected result where duplicates are counted only once for each unique combination of ID and Name, based on the minimum date.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
Hi @KyawMyoTun You can use the following DAX expression
Ticket =
COUNTROWS(
SUMMARIZE(
FILTER(
Sheet1,
[Date] = CALCULATE(
MIN(Sheet1[Date]),
ALLEXCEPT(Sheet1, Sheet1[ID], Sheet1[Name])
)
),
Sheet1[ID],
Sheet1[Name],
"Min Dt", MIN(Sheet1[Date])
)
)
The above expression should give you the expected result where duplicates are counted only once for each unique combination of ID and Name, based on the minimum date.
Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!
Proud to be a Super User! | |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
66 | |
51 | |
45 |
User | Count |
---|---|
216 | |
89 | |
82 | |
66 | |
57 |