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.
Hello Power BI Community,
Can somebody help me with my problem?
In my Excel table of 5 colums I gather incident information.
Table name; YTD_Status_Overview
On a PowerBi tile I show Date information of when the last incident (LastYesMAASTRICHT) is reported, 03/01/2021 in this case.
Measure code;
Of that same row I want to show the Comment information (injury test 03-01) on another tile. What would be the code for this measure?
Thanks in advance, Eric
Solved! Go to Solution.
Hi @eric_s ,
Based on just seeing the data in your screesnhot as I can't try it because you haven't attached the sample data file, Just try the following measure:
LastIncident =
var lastDate = CALCULATE(LASTDATE(YTD_Status_Overview[Date_Of_Incident]), FILTER(YTD_Status_Overview,[Set]="Yes" ))
RETURN
CALCULATE(MAX(YTD_Status_Overview[Comment]), FILTER(YTD_Status_Overview, [Set]="Yes" && YTD_Status_Overview[Date_Of_Incident] = lastDate))
Thanks,
Pragati
Thank you very much Pragati, your code works in my dashboard.
Gr, Eric
Hi @eric_s ,
Based on just seeing the data in your screesnhot as I can't try it because you haven't attached the sample data file, Just try the following measure:
LastIncident =
var lastDate = CALCULATE(LASTDATE(YTD_Status_Overview[Date_Of_Incident]), FILTER(YTD_Status_Overview,[Set]="Yes" ))
RETURN
CALCULATE(MAX(YTD_Status_Overview[Comment]), FILTER(YTD_Status_Overview, [Set]="Yes" && YTD_Status_Overview[Date_Of_Incident] = lastDate))
Thanks,
Pragati
Thank you very much Pragati, your code works in my dashboard.
Gr, Eric
Hi @eric_s ,
If the above solution works, please Accespt it as a solutions so that others can be also benefit from it.
Thanks,
Pragati
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
80 | |
47 | |
45 | |
36 |
User | Count |
---|---|
178 | |
89 | |
69 | |
47 | |
47 |