Forum Discussion
Power BI Matrix table - not to subtotal specific data
- Anonymous4 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 ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi phileastman ,
Do you want to show start date and end date value only once instead of repeating in all Products each week? As far as I know, you add [start date] and [end date] in matrix value field, so it will repeat in all rows each week.
You can try to create measures by IF and ISINSCOPE function.
Start Date =
IF(ISINSCOPE('Table'[Type]),BLANK(),IF(ISINSCOPE('Table'[Product]),CALCULATE(MAX(DimDate[Start date]))))End Date =
IF(ISINSCOPE('Table'[Type]),BLANK(),IF(ISINSCOPE('Table'[Product]),CALCULATE(MAX(DimDate[End date]))))
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.
Hi Rico
Thank you for the reply, it's greatly appreciated. If possible I would like the start and end date to be for each individual e.g. A, B, C, D but only shown once for the earliest and latest dates rather than each week that it shows by default:
- Anonymous4 years agoNot applicable
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 ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.