March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I would only like the value in 'Beoordeling' to be counted when 'Startdatum' is Max.
'Gevolmachtigde', 'Combitaak' and 'Jaar' should be unique.
So in this example, only the bold values should be counted.
If 'Gevolmachtigde', 'Combitaak' or 'Jaar' changes, again the Max value of 'Startdatum' should be calculated and the value of 'Beoordeling' should be counted.
Gevolmachtigde | Combitaak | Jaar | Startdatum | Beoordeling |
A | ACC-6 | 2020 | 1-3-2020 | Goed |
A | ACC-6 | 2020 | 1-6-2020 | Goed |
A | ACC-6 | 2020 | 1-9-2020 | Goed |
A | ACC-6 | 2020 | 1-12-2020 | Goed |
B | ACC-6 | 2020 | 1-3-2020 | Goed |
B | ACC-6 | 2020 | 1-6-2020 | Goed |
B | ACC-6 | 2020 | 1-9-2020 | Goed |
B | ACC-6 | 2020 | 1-12-2020 | Goed |
Hope this is clear. Thanks in advance.
Solved! Go to Solution.
Hi @Frunkle93 ,
Try the following code:
Calculate =
Var MaximumDate = MAX('Table'[Startdatum])
Return
CALCULATE( COUNT('Table'[Beoordeling]),'Table'[Startdatum] = MaximumDate)
Based on your data the information is very reduced but has you can see I have made a change to the dataset and included a new line for B on the maximum date has you can see the result is updating
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Frunkle93 ,
Try the following code:
Calculate =
Var MaximumDate = MAX('Table'[Startdatum])
Return
CALCULATE( COUNT('Table'[Beoordeling]),'Table'[Startdatum] = MaximumDate)
Based on your data the information is very reduced but has you can see I have made a change to the dataset and included a new line for B on the maximum date has you can see the result is updating
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
120 | |
77 | |
60 | |
54 | |
40 |
User | Count |
---|---|
191 | |
103 | |
87 | |
61 | |
50 |