Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

QUERY EDITOR (Not Desktop) Replacing cell counts with Cumulative Totals

$
0
0

I originally wanted to know how to create a calculated column to accomplish this. I was given the following code and it worked in desktop mode but not in the query editor.

 

Running = SUMX(
                             FILTER(VerbalComplaints,
                                            VerbalComplaints[Day]<=EARLIER(VerbalComplaints[Day])
                                        ),
                             VerbalComplaints[June]).

 

As far as I can tell the query editor does not recognize DAX functions like SUMX and EARLIER.

 

My end goal is for this to automatically update a Trend graph. That looks similar to this:

 

trend graph.jpg

Currently my table (query) looks like this in the Query Editor and I need to replace the contents in the cells with cumulative totals for any column not named Day. I have no idea where to start. If I can complete this last step then the query will produce the data ready to go for the trend graph. I believe I need to have the data fully ready in the query editor to be able to automate. Below is a graphic of my table.

 

VerbalComplaintsTable.jpg

 

I don't think I can just create a new column and replace.... I literally need to replace the cells populated with daily counts with the cumulative totals. This way my query always pulls in the proper months and names the columns correctly thanks to the pivot I use to create data currently in this table (query).


Viewing all articles
Browse latest Browse all 213819

Trending Articles