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.
hello guys, I need some help, I made a table that contains a measure that calculates the difference between two columns and back 1 or 0, when it brings 1 it shows a red icon as below (x in red)
Solved! Go to Solution.
I exported you calculated table and applied to it your requirements.
see if it is what you are after
Hi @Spotto ,
But that's okay, I'll give an example to demonstrate how to keep the first line and delete the others.
1.Create a conditional column named Custom.
2.Select both the Nr CASO column and the Custom column, then group by
3.Add another custom column, if custom column = 1, then return the first row in the Count column, otherwise return the Count column.
4.Expand the rows and remove the unneeded columns, get the result.
Hope it helps you.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I believe that with the function table.group and table.first or table.min you could solve your problem.
if you want more specific help upload an input table so it can be copied easily.
I put the attached file, thanks for the help 🙂
it worked thanks, but the columns, formulas, measurements I did in DAX, I would have to do all of them in power query M to be able to group as you did?
From your example I even thought of using summarize but it didn't work.
Hi @Spotto ,
But that's okay, I'll give an example to demonstrate how to keep the first line and delete the others.
1.Create a conditional column named Custom.
2.Select both the Nr CASO column and the Custom column, then group by
3.Add another custom column, if custom column = 1, then return the first row in the Count column, otherwise return the Count column.
4.Expand the rows and remove the unneeded columns, get the result.
Hope it helps you.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.