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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Henrik_99
Resolver I
Resolver I

RANKX - SKYLINE Chart in Power BI Desktop

 

Hi

In reference to https://datamonkeysite.com/2016/10/05/completion-skyline-template/ I need assistance to modiy the RANKX formula to allow filtering.

 

In this example you need to select both Precom or Commissioning and  SEPARABLE_PORTION if the skyline shall work properly.

 

However I need to get a total overview of all subsystems without filtering, they shall collapse to the buttom of the chart. I`ve tried several cases to get the subsystems to re-rank without selection. No luck.

 

Secondly it should be possible to select Precom or Commissioning phase e.g. collapse to the buttom of the chart. It should cover these 2 scenario.

 

Hopefully someone can help:)

 

Many thanks.

 

Cheers

H.

 

 

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Henrik_99,

 

Please share some sample data/pbix file with expected result to help us clarify your data structure and requirement.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi Xiaoxin

 

As figure1 below shown, you should be able to select discipline, all discipline and/or milestones.

 

Fig1.JPG

If you select more disciplines you get following scenario;

 

Fig2.JPG

Here are the Daxs;

 

Skyline WORKORDER = IF( ISCROSSFILTERED(RV_PROFILER_PO_HAO_VIEW[RNK]);if(COUNTROWS(values(RV_PROFILER_PO_HAO_VIEW[WORK_NO]))=1;VALUES(RV_PROFILER_PO_HAO_VIEW[WORK_NO]);[Skyline WORKORDER Date]))

 

Skyline WORKORDER Date = IF( ISCROSSFILTERED(RV_PROFILER_PO_HAO_VIEW[RNK]);BLANK();if(COUNTROWS(values(RV_PROFILER_PO_HAO_VIEW[WE]))=1 ;FORMAT(VALUES(RV_PROFILER_PO_HAO_VIEW[WE]);"dd-mmm-yy");BLANK()))

 

RNK = RANKX(FILTER(ALL(RV_6101_PO_HAO_PROCOSYS);[WE]=EARLIER([WE])&&[DISCIPLINE]=EARLIER([DISCIPLINE]));
RV_6101_PO_HAO_PROCOSYS[WONO]; ;1 ;DENSE)

 

Can I send PBIX as well...?

 

Regards

Henrik

Hi @Henrik_99,


Based on research with that sample file, it seems like him use multiple conditions and complex filter to force replace display value to achieve skyline chart in matrix.

 

In my opinion, it is not suitable to use matrix to achieve these requirement, because of every time you add new data and fields, you need to manually modify these filters to fit new records and replace unmatched records. Basically you need have enough experience on row contents and dax formula, you know how to use conditions to locate records and summary level which need to be replaced.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.