The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All,
I have a requirement to display the min date when status=Assigning in M query.
Sample data:
Requirement: My final table will need to have only one line per order. Now we are having multiple statuses for one order number.
Show only status=Assigning by picking the first date when there are more than one dates for status=Assigning and remove all other statuses using M query and not using DAX.
Sample pbix is available here.
Thank you
@POSPOS , Add a new column in power query use the correct table name from the last step of your query
let
_val = [order number]
_min = List.Min(Table.SelectRows(#"Last Step table name", each [order number] = _val)[Effective Date])
return
_min
User | Count |
---|---|
61 | |
55 | |
53 | |
49 | |
30 |
User | Count |
---|---|
179 | |
87 | |
70 | |
48 | |
45 |