Forum Discussion

ramanathans's avatar
ramanathans
Frequent Visitor
5 years ago

Ability to expand selectively on column headers

Is it possible to expand specific column headers. In case of row headers we can use +/- to expand and collapse specific elements. I would like to do something similar for columns.

 

I understand there are no options for the same currently in power bi desktop, but is there any work around for this.

 

My specific use case is this. We have a report which has week level data and we want to expand most of the times only the most recent or 2 most recent weeks to see day wise. But currently either i have to expand all weeks not just the ones i want and see the data which increase the amount of data on the screen or filter my required weeks and then expand. But both of which are not meeting our requirements currently of selectively expanding data points.

3 Replies

  • ramanathans The only other option I can think of besides those you have mentioned is to write measure specific to the columns you are trying to display. So if you wanted to show 5 columns like

    • Sales This Week
    • Sales Last Week
    • Orders This Week
    • Orders Last Week
    • Total Customers

    You would write measure to give you the specific time period you are looking for. 

    Sales This Week = 
    CALCULATE (
        SUM ( Sales[Amount] ),
        DATESBETWEEN ( Dates[Date], TODAY () - 6, TODAY () )
    )
    Sales Last Week =
    CALCULATE (
        SUM ( Sales[Amount] ),
        DATEADD ( DATESBETWEEN ( Dates[Date], TODAY () - 6, TODAY () ), -7, DAY )
    )

     

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi ramanathans ,

    Could you tell me if your problem has been solved?
    If it is, kindly Accept it as the solution. More people will benefit from it.
    Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


    Best Regards,
    Stephen Tao