Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @Anonymous ,
You can refer to below method.
RETURN =
VAR LatestStatus = 'Table'[Latest Status]
VAR SplitPositions =
UNION(
SELECTCOLUMNS({0},"Position",[Value]),
DISTINCT(FILTER(SELECTCOLUMNS(GENERATESERIES(1,LEN(LatestStatus )),"Position",FIND(",",LatestStatus ,[Value],BLANK())),[Position]<>BLANK())),
{LEN(LatestStatus )+1}
)
VAR SplitPosition_AddIndex = ADDCOLUMNS(SplitPositions,"Index",RANKX(SplitPositions,[Position],,1))
VAR NumList =
SELECTCOLUMNS(
GENERATESERIES(1,COUNTROWS(SplitPositions)-1),
"Num",
VAR Start_ = SUMMARIZE(FILTER(SplitPosition_AddIndex,[Index]=[Value]),[Position])+1
VAR End_ = SUMMARIZE(FILTER(SplitPosition_AddIndex,[Index]=[Value]+1),[Position])
RETURN
MID(LatestStatus ,Start_,End_-Start_)*1
)
RETURN
MAXX(NumList,[Num])
Demo - Dax Returned statement Help.pbix
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
So sorryfor not responding, I started working on something else and just did not get an update notification from my posted question so I'll tries methods now and get back to everyone who responded to help.
Hi @Anonymous ,
You can refer to below method.
RETURN =
VAR LatestStatus = 'Table'[Latest Status]
VAR SplitPositions =
UNION(
SELECTCOLUMNS({0},"Position",[Value]),
DISTINCT(FILTER(SELECTCOLUMNS(GENERATESERIES(1,LEN(LatestStatus )),"Position",FIND(",",LatestStatus ,[Value],BLANK())),[Position]<>BLANK())),
{LEN(LatestStatus )+1}
)
VAR SplitPosition_AddIndex = ADDCOLUMNS(SplitPositions,"Index",RANKX(SplitPositions,[Position],,1))
VAR NumList =
SELECTCOLUMNS(
GENERATESERIES(1,COUNTROWS(SplitPositions)-1),
"Num",
VAR Start_ = SUMMARIZE(FILTER(SplitPosition_AddIndex,[Index]=[Value]),[Position])+1
VAR End_ = SUMMARIZE(FILTER(SplitPosition_AddIndex,[Index]=[Value]+1),[Position])
RETURN
MID(LatestStatus ,Start_,End_-Start_)*1
)
RETURN
MAXX(NumList,[Num])
Demo - Dax Returned statement Help.pbix
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Hi @Anonymous
Would this help?
RETURN
IF(
FIND( "-2", LatestStatus, 1, 0 ) > 0,
"-2",
IF(
FIND( "-1", LatestStatus, 1, 0 ) > 0,
"-1",
IF(
FIND( "2", LatestStatus, 1, 0 ) > 0,
"2",
IF(
FIND( "1", LatestStatus, 1, 0 ) > 0,
"1",
"BLANK"
)
)
)
)
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
19 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |