Forum Discussion

kumsha1's avatar
kumsha1
Icon for Post Patron rankPost Patron
5 years ago

Measure values based on DATE flag (slicer selection)

Hi,

 

I have created below calculated measures that will calculate values for current and previous days based on slicer Date selection. Is it possible to change the matrix table to below required format OR create a Date flag for Current, Previous 24 hrs to use with the measure to change the values dynamically. Thanks in advance !.

Current Format:

 

Required Format:

 

6 Replies

  • kumsha1 , You have do measure to dimension converiosn. You have create a table like this and display that in matrix

    union(
    summarize('Table',"Measure","Sales Growth", "ACT",[Sales Growth], "PY",[Sales Growth PY], "FC",[Sales Growth FC]),
    summarize('Table',"Measure","Price Growth", "ACT",[Price Growth], "PY",[Price Growth PY], "FC",[Price Growth FC])
    )

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi kumsha1 ,

     

    Based on your description, you can do some steps as follows.

    1. Spilt the first column.

     

     

    1. Create a table.

     

    Table =

    ADDCOLUMNS(

        SUMMARIZE(table2,[attribute.1]),

        "Prev", MAXX(FILTER(ALL(table2),[attribute.2]<>BLANK()&&[attribute.1]=EARLIER('table2'[attribute.1])),[percentage]),

        "Current",MAXX(FILTER(ALL(table2),[attribute.2]=BLANK()&&[attribute.1]=EARLIER('table2'[attribute.1])),[percentage])

    )

     

    Result:

     

    Hope that's what you were looking for.

    Best Regards,

    Yuna

     

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

    • kumsha1's avatar
      kumsha1
      Icon for Post Patron rankPost Patron

      Hi Anonymous , thanks for your reply.

       

      All the objects are calculated measures... Hence, not available for column formatting 😞

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi kumsha1 ,

    Can you kindly provide me your sample data model or sample data? It couldn't be better if you offer me your formula of calculated measures.

    Best Regards,

    Yuna

    • kumsha1's avatar
      kumsha1
      Icon for Post Patron rankPost Patron

      Hi Anonymous , how can i share sample .pbix file with you?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi kumsha1 ,

        Please share me with your pbix file from your Onedrive for Business. (just post a link as a reply)

        Best Regards,
        Yuna