Forum Discussion

novel's avatar
novel
Frequent Visitor
3 years ago

Custom Table

I need to crate a custome table which will be having the mutliple measures like Sales, Growth % , etc based on different time period, can anyone please help me with this ??
I've added a screenshot below and i need to make those name to be dynamic like current month will be shown as "March 23" or whatever the current month it is. 

 

 

 

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi novel ,

     

    The current system does not support this function. You can post your idea to Ideas .

    https://ideas.powerbi.com/ideas/

    You can use the following methods instead or use custom visuals.

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data.  

    (2) We can create six calculated columns.

     

     

     

    current month = IF( MONTH('Table'[date]) =MONTH(TODAY()), "current month" & 'Table'[date],BLANK())
    last month = IF(MONTH('Table'[date])+1=MONTH(TODAY()),"last month" &'Table'[date],BLANK()) 
    last to last month = IF(MONTH('Table'[date])+2=MONTH(TODAY()),"last to last month" & 'Table'[date],BLANK()) 
    QTD_x = QUARTER('Table'[date])
    YTD = TOTALYTD(SUM('Table'[value]),DimDate[Date])
    QTD = TOTALQTD(SUM('Table'[value]),DimDate[Date])

     

     

     

    (3) Then the result is as follows.

     

     

    You can refer to the following documents that may be helpful to you:

    Calculating MTD, QTD, YTD, Running and Cumulative Total in Power BI (mssqltips.com)

    Power BI: Custom table with dynamic header titles | by Hernan Demczuk | SOUTHWORKS | Medium

    goodly.co.in

    www.youtube.com

    www.youtube.com

     

    Best Regards,

    Neeko Tang

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

    • novel's avatar
      novel
      Frequent Visitor

      Hello Anonymous 

      Thanks for the solution but with the values for "Sales", "Quantity", "Growth" can only be created with measure as those calculations are dependent on filters and conditions. Along with them there are almost eight different measure are there. 

      Also thanks for sharing the links, but I've tried most of the possible ways but still it isn't working.