Forum Discussion

phileastman's avatar
phileastman
New Member
4 years ago
Solved

Power BI Matrix table - not to subtotal specific data

Hi, firstly apologies for the way this is described, not quite 100% sure how to explain what I require and if its possible but somebody may easily know the answer!   I have a spreadsheet of data th...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi phileastman ,

     

    I think you want to show start date and end date only once instead of expanding all week. As far as I know, you add [start date] and [end date] in matrix value field. As I mentioned above, Power BI will expand the column in each column level. So Power BI doesn't support your requirement.

    Here I have a workaround that you can try to show min start date and max end date in subtotal. You just need to turn off word wrap in format and then reduce the width  of the column which you don't need to 0.

    Measure:

     

    Start Date = 
    IF(ISINSCOPE('Table'[Type]), CALCULATE(MIN(DimDate[Start date]),ALLEXCEPT('Table','Table'[Product],'Table'[Type])),BLANK())
    End Date = 
    IF(ISINSCOPE('Table'[Type]), CALCULATE(MAX(DimDate[End date]),ALLEXCEPT('Table','Table'[Product],'Table'[Type])),BLANK())

     

    Result is as below.

     

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.