Forum Discussion

CTan42's avatar
CTan42
Icon for Helper II rankHelper II
9 years ago

same measure in every pages

Hi all, I have 5 tables (e.g. Table A, Table B, Table C, Table D, Table E). Below is the measure which i want to do:

1. CurrentMonth = sum('Table A'[Revenue])

2. CurrentMonth = sum('Table B'[Revenue])

3. CurrentMonth = sum('Table C'[Revenue])

4. CurrentMonth = sum('Table D'[Revenue])

5. CurrentMonth = sum('Table E'[Revenue])

 

So my problem here is i have to do that measure in every tables. Howevery the power bi doesn't allow me to using the same measure name. Due to the presentation purpose, I'm suggest to use 'current month' as the column name. So, is there any other ways to fix it? Thanks.

 

Regards,

Chung. 

6 Replies

  • You don't need the measure in TableA, B, C, D and E if you do a SUM over all and filter according to your relations like with a slicer.

     

    You could even do a slicer on fixed values A/B/C/D/E if you really really need it the way you said. 

     

    Measures are not really stored in tables that is just for visual/order purposes. The context of the measure and like which tables it references is defined only by the DAX.

    Just place it in TableA or wherever seems best and you can use it anywhere.

    • CTan42's avatar
      CTan42
      Icon for Helper II rankHelper II

      Thanks for the suggestion. However I dont really understand what you are saying. But the reason why i need to do the measure is I have to make a matrix table at the end with using the measure as the value in the matrix table. Or could show me the instruction?

      Thanks

      • cs_skit's avatar
        cs_skit
        Icon for Resolver IV rankResolver IV

        Maybe if you post your tables and what you need peoples can propose a solution.

         

        Btw if its the same data structure in those tables you might want to merge them. Either in Query Editor or by New Table DAX

         

        NewTableName =

        UNION(

        TableA; TableB; TableC; TableD; TableE

        )

         

        What you want in your original question is impossible each measure has to have unique name. But ihmo its the wrong question there is probably a better solution for your problem then what you want to do in your first post.