Forum Discussion

myonaiz's avatar
myonaiz
Microsoft Employee
6 years ago
Solved

Summarize filtered table

Hi, I have a table Like the following

 

App IdDateLocationCount
12020-1-1USA2
12020-1-2USA3
22020-1-1China5
22020-1-3China10
32020-1-2USA4

 

I created a summarized table using the following DAX Expression

 

 

 

 

SummarizedTable = SUMMARIZE(Table, Table[App Id], "CountSummarized", SUM(Table[Count])) 

 

 

 

 

 

I also created a graph that renders a histogram of the number of app Ids per each count bucket. I do not know if it is possible or no but I want to add the Date and Location columns above as filters but not summarization dimensions. in other words I want the data that gets fed to the summarization DAX expression to change based on filters (slicers) on Location and Date. any idea how I can do that?


Thanks a lot in advance 

5 Replies

  • Hi,

    Please explain the business context and for the data that you shared in the original post, please show the expected result.

    • myonaiz's avatar
      myonaiz
      Microsoft Employee

      I am sorry I do not understand what you mean by the bussiness context.

       

      but for the table I shared here is the expected result:

       

      original table for reference:

      App IdDateLocationCount
      12020-1-1USA2
      12020-1-2USA3
      22020-1-1China5
      22020-1-3China10
      32020-1-2USA4

       

      No filters applied the data should be: (just summarizing all rows by app id and summing the count)

       

      App IdCount
      15
      215
      34

       

      with the user for example choosing USA: (just summarizing all rows in location USA)

       

      App IdCount
      15
      34

       

      with the user for example choosing date 2020-1-1: (just summarizing all rows that happened on 2020-1-1)

       

      App IdCount
      12
      25

       

       

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        Hi,

        Create a Table visual and drag App Id there.  Write this measure

        Measure = SUM(Data[Count])

        Hope this helps.