Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
I have quite a simple problem but I can't figure out a solution as the ones I've seen doing something similar revolve around using Power Query to group the table and then merge with original. However, in my situation I have a calculated column giving a true / false result for a series of IDs. It is possible for an ID to be flagged as false many times before becoming true (as seen in the table - ID 27392).
I would like to create a table where only the last record is used in the table per ID. Currently my output is the following:
Count of true = 61 (correct number)
Count of false = 280 (incorrect due to inclusion of records flagged false when last record was true)
Total unique IDs = 294
Sorry if I've explained it poorly, I'm still learning.
Cheers
Solved! Go to Solution.
Hi @Anonymous ,
Are you trying to get latest value of true or false for childID and lastest date for it?
If so, you can use the following summarize table:
Table2 =
SUMMARIZE (
'Table',
'Table'[ChildID],
"LAOfferCheck", LASTNONBLANK ( 'Table'[LAOfferCheck], 1 ),
"LA_Offered_Date", LASTNONBLANK ( 'Table'[LA_Offered_Date], 1 )
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi @Anonymous ,
When you are moving your True/False column to the table visual, use LAST summarised option on this column to display. It will pick-up the last True/False for your ID.
Thanks,
Pragati
Hi again,
Thanks for the quick response. I attached the date field corresponding to the true/false as seen in my screenshot link below. You can see that the all 'true' values are simply flags for when there is a date. I have then selected 'latest' on the visual summary, however, it is now ommitting all false records as they do not technically have a date.
Any ideas?
Hi @Anonymous ,
Are you trying to get latest value of true or false for childID and lastest date for it?
If so, you can use the following summarize table:
Table2 =
SUMMARIZE (
'Table',
'Table'[ChildID],
"LAOfferCheck", LASTNONBLANK ( 'Table'[LAOfferCheck], 1 ),
"LA_Offered_Date", LASTNONBLANK ( 'Table'[LA_Offered_Date], 1 )
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |