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 August 31st. Request your voucher.
Hello, I have this original data table T1 using DirectQuery mode:
I want to create a table visual to show for the same ID, when Action is 'End', who is the Staff that previously 'Start' OR 'Transfer', probably need to create a new column - Started Staff, the expected result as below:
Solved! Go to Solution.
Assuming the blanks in T1[Staff Name] are nulls, you can use the following measure:
Started Staff =
CALCULATE(
FIRSTNONBLANK( T1[Staff Name], T1[Staff Name] ),
ALL( T1[Action] )
)
In a table where you set filter of T1[Action] = End:
Hi @OceanExplorer ,
Thank you @MarkLaf for the helpful response!
I tried to recreate it on my local with the sample data.So that I used below measure to create a calculated column:
If this solution meets your requirement,consider accepting it as solution.
Thank you for being a valued member in Microsoft Fabric Community Forum!
Regards,
Pallavi.
Hi @OceanExplorer ,
Has the issue been resolved on your end? If so, please share your solution and mark it as "Accept as Solution." This will assist others in the community who are dealing with similar problems and help them find a solution more quickly.
Thank you.
Hi @OceanExplorer ,
I wanted to check and see if you had a chance to review our previous response. Please let me know if everything is sorted or if you need any further assistance.
Thank you.
Hi @OceanExplorer ,
Could you please confirm if the issue has been resolved on your end? If a solution has been found, it would be greatly appreciated if you could share your insights with the community. This would be helpful for other members who may encounter similar issues.
Thank you for your understanding and assistance.
Hi @OceanExplorer ,
Thank you @MarkLaf for the helpful response!
I tried to recreate it on my local with the sample data.So that I used below measure to create a calculated column:
If this solution meets your requirement,consider accepting it as solution.
Thank you for being a valued member in Microsoft Fabric Community Forum!
Regards,
Pallavi.
Assuming the blanks in T1[Staff Name] are nulls, you can use the following measure:
Started Staff =
CALCULATE(
FIRSTNONBLANK( T1[Staff Name], T1[Staff Name] ),
ALL( T1[Action] )
)
In a table where you set filter of T1[Action] = End: