Best Of
Re: Help Pivoting Data
Agreed, I've done dynamic column renaming using a Stored Proc in a MySQL dataflow - you can query the system tables to get the schema.
Re: How to get an avg in the grand total of a column with a BM with sum?
@Pam1324 Since the only difference between the calculations for Month 10 calculation and all other months is the numerator, the grand total will work more cleanly with the case statement inside the first sum like below. Aggregations work best when they are outside of the case statement, rather than inside them.
sum(case when month(`cycle`) = '10' then `$ new Annual Salary(in USD)` else `$ New Annual Salary(custom)(in USD)` end) / sum(`$ Annual Salary(in USD)`) - 1
Re: Month Over Month % Change of Total Number
@MichelleH There are, that's what I was trying to use with the IFNULLS and NULLIFS. With your perspective I was able to get the correct calculations, pictured below.
I also realize I could have done this NULL reassigning in an ETL for simplicity's sake, but I'm just happy it works.




