Forum Discussion

duybachhpvn's avatar
duybachhpvn
Frequent Visitor
4 years ago
Solved

Dynamic virtual summarized table

Hi, is there a way to write a DAX measure to obtain a dynamic virtual table that will give me the desire result as in below scenario?   Basically the result I would want is the final Dynamic virtua...
  • v-chenwuz-msft's avatar
    4 years ago

    Hi duybachhpvn ,

     

    The tables we create (new tables) are static and cannot be created dynamically.

    But SUMMARIZE can create a dynamic virtual table from two table, but the table can not be return. Let me prove it to you.
    Before doing so, create a relationship between these tables.

    I create a measure to return which is the result of summarize.

    SUMMARIZE TABLE = 
    var _1 = SUMMARIZE('Cost',[PeriodName],[ScenarloName],[Cost])
    return
    CONCATENATEX(_1,[PeriodName] &" "&[ScenarloName]&" "&[Cost],"
    ")

    result:

     

     

    Pbix in the end you can refer.

    Best Regards

    Community Support Team _ chenwu zhu

     

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