Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have a list of id's, list of approval type and list of date / time against each approval type and id.
Refer sample table below -
Id Approval type Date/Time
x a 8/7/2015 6:44:00 PM
x a 8/7/2015 5:31:00 PM
x b 6/7/2015 5:31:00 PM
y a 11/19/2015 4:36:00 PM
y b 11/25/2015 6:43:00 PM
y b 11/24/2015 8:41:00 AM
z a 12/4/2015 7:22:00 PM
I need to group these by ID, then approval type and then take only the latest apporoval date / time.
I am able to group them and create another table, but can someone explain how can i just filter on the latest date/time for each id and each record type within the id.
Thanks!
Solved! Go to Solution.
Hi @Anonymous
You’d better create a another table using SUMMARIZE Function. In the function, filter the latest date/time based on id and each record type. I try to reproduce your scenario as follows, please review.
Please click the new table(highlighted in yellow), then type the following formula. Run it , and you get expected result like the screenshot below. In the formula, the “Test” table is the same as your given sample data.
Table 2 = SUMMARIZE(Test,Test[Id],Test[Approval type],"Date",MAX(Test[Date/Time]))
If you have any question, please feel free to ask.
Best Regards,
Angelia
Hi @Anonymous
You’d better create a another table using SUMMARIZE Function. In the function, filter the latest date/time based on id and each record type. I try to reproduce your scenario as follows, please review.
Please click the new table(highlighted in yellow), then type the following formula. Run it , and you get expected result like the screenshot below. In the formula, the “Test” table is the same as your given sample data.
Table 2 = SUMMARIZE(Test,Test[Id],Test[Approval type],"Date",MAX(Test[Date/Time]))
If you have any question, please feel free to ask.
Best Regards,
Angelia
I believe that you want to create a measure like so:
Max Date/Time = MAX([Date/Time])
Use a matrix visualization and put Id, Approval Type and this measure into the matrix.
Not sure what this has to do with the title of the post.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 39 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 73 | |
| 70 | |
| 37 | |
| 35 | |
| 26 |