Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Expert
I have a requlatory identification table with thousands of rows of data, I want to create a summary table and link the new summary table to the Regulatroy FACT problem via Reg ID. With the most recent date in the date column.
See image below
Solved! Go to Solution.
Gotcha. This article should answer what you're asking to do!
https://radacad.com/grouping-in-power-query-getting-the-last-item-in-each-group
Lete me know if this helps!
Hi @Anonymous,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Number Consecutive Days =
VAR selecteddate =
SELECTEDVALUE ( 'Table'[Date] )
VAR lastnotworkeddate =
CALCULATE (
MAXX (
FILTER ( Date, ISBLANK ( CALCULATE ( COUNTROWS ( 'Regulatory Issue ID' ) ) ) ),
Table[Date]
),
Table[Date] < selecteddate
)
VAR diff =
DATEDIFF ( lastnotworkeddate, selecteddate, DAY )
RETURN
IF ( COUNTROWS ( 'Regulatory Issue ID' ) > 0, IF ( diff > 1, diff ) )
Try this one hope it will solve the issue
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Are you looking to keep the last row of each regulatory issue ID? I'd do this in Power Query than in DAX...
You can select a column and use "keep rows" to keep only the last row:
If this helps, please give it a thums up and select as a solution 🙂
Hi I am looking to keep only the last date but - how do you count the number of time/occurance that same regulatory id has re-occurred.
Gotcha. This article should answer what you're asking to do!
https://radacad.com/grouping-in-power-query-getting-the-last-item-in-each-group
Lete me know if this helps!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
99 | |
80 | |
67 | |
63 |
User | Count |
---|---|
145 | |
111 | |
104 | |
84 | |
64 |