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.
Hi Every one . I need help on beow requirement.
Package rev needs to be sorted out in desc. I did this. However main requirement is need to get the latest status based on the PackageRev column.
I have tried
but these queries not giving exact results.
Original data
Expected data
Solved! Go to Solution.
Hi @Vanditha ,
Based on your description, I obtained the following results using the sample you provided:
Latest Rev = var _t1= ADDCOLUMNS('Table',"Test",MAXX(FILTER(ALL('Table'),[ID]=EARLIER([ID])),[PackageRev]))
var _t2 = ADDCOLUMNS(_t1,"True",IF([Test]=[PackageRev],1,0))
return CALCULATE(MAXX(FILTER(_t2,[True]=1),[PackageRev]))
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your support. I have achieved this formula in other way by creating group by with Key column. Thanks for your help and support.
Hi @Vanditha ,
Based on your description, I obtained the following results using the sample you provided:
Latest Rev = var _t1= ADDCOLUMNS('Table',"Test",MAXX(FILTER(ALL('Table'),[ID]=EARLIER([ID])),[PackageRev]))
var _t2 = ADDCOLUMNS(_t1,"True",IF([Test]=[PackageRev],1,0))
return CALCULATE(MAXX(FILTER(_t2,[True]=1),[PackageRev]))
An attachment for your reference. Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
145 | |
79 | |
63 | |
52 | |
47 |
User | Count |
---|---|
217 | |
89 | |
76 | |
67 | |
60 |