Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi there,
for most of my challenges I found solutions within this forum. However, not for this one. I'm stuck in the thinking process and need support.
I have one imported table ('MBRMIG_Status') and one calculated table ('LatestMigStatusForEachMBR) which is related to the imported table via the "Vorgangsschluessel" (Document name)
The imported table has besides the three imported columns
two other calculated columns:
MigStatusGroup = IF(SUMX(Migrationstatus, FIND(UPPER(Migrationstatus[Migrated]), UPPER(MBRMIG_Status[LatestStatus], ,0)) > 0, "Migrated", BLANK())
Instead of the Blank() there are 4 more If-conditions just with different status group wordings (besides "migrated", also "finished," "OtherStatus", ...).
LatestTransitionDate = CALCULATE(MAX(MBRMIG_Status[Transition to status last date]), ALLEXCEPT (MBRMIG_Status, MBRMIG_Status[Vorgangsschluessel]))
Telling me what was the last date something changed for the specific document ("Vorgangsschluessel).
My calculated column
was created based on having each "Vorgangsschluessel" just once:
LatestMigStatusForEachMBR = DISTINCT(SELECTCOLUMNS(MBRMIG_Status, MBRMIG_Status[Vorgangsschluessel]))
and adding again the latest date:
LatestTransDate = CALCULATE(MAX(MBRMIG_Status[Transition to status last date]), ALLEXCEPT (LatestMigStatusForEachMBR, LatestMigStatusForEachMBR[MBRMIG_Status_Vorgangsschluessel]))
Now I struggle to fetch the MigStatusGroup from my 'MBRMIG_Status'-Table specific for the document name ("Vorgangsschluessel") and where the "LatestTransDate" (calulcated table) is the same as the "Transition to status date" (imported table).
LatestStatusOnThisDate = CALCULATE(
COUNTROWS(MBRMIG_Status),
FILTER(MBRMIG_Status, MBRMIG_Status[LatestTransitionDate] = LatestMigStatusForEachMBR[LatestTransDate])
ALLEXCEPT(LatestMigStatusForEachMBR, LatestMigStatusForEachMBR[MBRMIG_Status_Vorgangsschluessel])
)
Solution should look like this:
Any suggestions?
Solved! Go to Solution.
Hi, @Cleo5
You can try the following methods.
Sample data:
Result:
LatestTransDate = LOOKUPVALUE('Table'[LatestTransDate],'Table'[Vor],[Vor])
Column = CALCULATE(MAX('Table'[MigStatusGroup]),FILTER('Table',[Transition to status last date]=EARLIER('Table 2'[LatestTransDate])))
Refer to the attachment.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Cleo5
You can try the following methods.
Sample data:
Result:
LatestTransDate = LOOKUPVALUE('Table'[LatestTransDate],'Table'[Vor],[Vor])
Column = CALCULATE(MAX('Table'[MigStatusGroup]),FILTER('Table',[Transition to status last date]=EARLIER('Table 2'[LatestTransDate])))
Refer to the attachment.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Solution was found by using more arguments in Lookupvalue
LatestStatusOnThisDate = LOOKUPVALUE(MBRMIG_Status[MigStatusGroup], MBRMIG_Status[Vorgangsschluessel], LatestMigStatusForEachMBR[MBRMIG_Status_Vorgangsschluessel], MBRMIG_Status[Transition to status last date], LatestMigStatusForEachMBR[LatestTransDate])
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |