Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

DAX

I have a Production table, DimDate table. I needed to display weekly sum which I was able to do using SUMMARIZE function. Output of SUMMARIZE function is in 'TableS' with 2 columns WeekNo, SumP.  Now after creating relationships between these 3 tables, when I display the data, it is coming as :

Day   WeekNo.     SumP

1            1           129871

2            1           129871

3            1           129871

4            1           129871

5            1           129871

6            1           129871

7            1           129871

 

I want to display the figures in SumP column only when Day ==7(The Day information is in DimDate table). Please suggest how to do it.

7 Replies

  • Anonymous i don't think you need to create summarize table, you can achieve everything using production and dimdate table. just share sample production data and expected output and will get you the solution.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

       

      Similarly data will be for different weeks and sum needs to be done for every week but will be shown only on Saturday in SumP column which we can get by Day column after checking value equal to 7.

      • parry2k's avatar
        parry2k
        Super User

        Anonymous  can you put it in a more readable format?