Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

Help: Fixed LOD in Power BI

Hello, anyone can help do the level of detail type of calculation in power bi?

 

I have two extract in Power BI, and i need to get the Fiscal Year for a specific Project Number based from which: "Previous Week" extract and the "Current Week" extract.

 

How do i implement the formula below in Power BI?

{ FIXED [Project Number1]: MIN(if [Week]="Current Week" then [Fiscal Year] end)}

{ FIXED [Project Number1]: MIN(if [Week]="Previous Week" then [Fiscal Year] end)}

 

 

 

 

Your help will be appreciated.

3 Replies

  • Anonymous , need to know you table structure

     

    calculate(min(Table[Fiscal Year]), filter(allselected(Table),Table[Week]="Current Week" && Table[Project] =max(Table[Project])))

     

    calculate(min(Table[Fiscal Year]), filter(allselected(Table),Table[Week]="Last Week" && Table[Project] =max(Table[Project])))

     

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Anonymous ;

    Not very clear about your logic, can you share more details and logic about your problem? Or share pbix that removes sensitive data.