Forum Discussion
How to create QTD in Power Query Editor ?
Hi Team,
I have data like below, i want to calculate QTD for this.
| Empl | Oct Sales | Nov Sales | Dec Sales | Jan Sales | Feb Sales | Mar Sales |
| A | 12 | 3 | 14 | 6 | 0 | 10 |
| B | 5 | 13 | 7 | 6 | 4 | 8 |
| C | 3 | 8 | 3 | 22 | 15 | 21 |
| D | 6 | 5 | 7 | 4 | 11 | 5 |
We have unpivoted the colunms and created a new Colunm for Qtr label then created a Groupby for the new column to get the Qtr sum
3 Replies
- Waldo35Helper I
You can build QTD easily in Dax, i am not sure what the use case is but maybe you want to avoid Power Query Editor for this 1 and just use https://learn.microsoft.com/en-us/dax/totalqtd-function-dax.
- AnonymousNot applicable
Hi JishnuGS ,
Not sure. If you want to calculate the sum of the values on the rows, you can select these columns and then click on this button and select 'Sum'.
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- JishnuGSFrequent Visitor
We have unpivoted the colunms and created a new Colunm for Qtr label then created a Groupby for the new column to get the Qtr sum