Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
crolland
New Member

Find the higher status per fiscal year

Good morning,

 

I have the feeling to be in a large black hole... I tried some much things...I am now confused...

 

Here is my initial table : 

 

Fiscal YearProjectProject StatusRoadmap
FY 2022/2023Project AOn GoingOMEGA
FY 2022/2023Project BOn GoingOMEGA
FY 2022/2023Project COn GoingOMEGA
FY 2022/2023Project DAt RiskCLIO
FY 2022/2023Project EOn Going BETA
FY 2022/2023Project FBlockedBETA
FY 2023/2024Project AAt RiskOMEGA
FY 2023/2024Project COn GoingOMEGA
FY 2023/2024Project DNot Started YetCLIO
FY 2023/2024Project GOn GoingCLIO

 

And my goal is to get the status of the Roadmap per fiscal year knowing the following logic : 

 

1. Blocked (Higher status)

2. At Risk

3. On Going

4. Not Started Yet (Lower status)

 

If one of the project in the roadmap item is Blocked, the roadmap status is Blocked.

If one of the project in the roadmap item is At Risk and none of them is Blocked, the roadmap status is At Risk

etc...

 

like : 

 

Fiscal YearRoadmapRoadmap Status
FY 2022/2023OMEGAOn Going
FY 2022/2023CLIOAt Risk
FY 2022/2023BETABlocked
FY 2023/2024OMEGAAt Risk
FY 2023/2024CLIOOn Going

 

Thanks !

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @crolland ,

Pls use the below dax to create two column:

flag = IF('Table'[Project Status]="Blocked",4,IF('Table'[Project Status]="At Risk",3,IF('Table'[Project Status]="On Going",2,1)))
test = CALCULATE(MAX('Table'[flag]),ALLEXCEPT('Table','Table'[Fiscal Year],'Table'[Roadmap]))

Then create a tableB:

vluwangmsft_0-1669272115356.png

 

Create relationship:

vluwangmsft_1-1669272133968.png

 

Output result:

vluwangmsft_2-1669272190010.png

 

Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @crolland ,

Pls use the below dax to create two column:

flag = IF('Table'[Project Status]="Blocked",4,IF('Table'[Project Status]="At Risk",3,IF('Table'[Project Status]="On Going",2,1)))
test = CALCULATE(MAX('Table'[flag]),ALLEXCEPT('Table','Table'[Fiscal Year],'Table'[Roadmap]))

Then create a tableB:

vluwangmsft_0-1669272115356.png

 

Create relationship:

vluwangmsft_1-1669272133968.png

 

Output result:

vluwangmsft_2-1669272190010.png

 

Best Regards

Lucien

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.