Forum Discussion
VS_5
7 years agoNew Member
Power BI - Conditional sum column
There is a table with the structure below where I have Revenue for months 1 thru 12 for Account....... (Rev1, Rev2...Account, are different columns) I'd like to Add Rev1 numbers for only account...
- Anonymous7 years ago
VS_5 -
In addition to Unpivoting your fact table, I would add additional dimension tables for Account and Date. This will allow you to add meaningful groupings and other descriptive attributes. For example, your account table could begin with all of the distinct accounts, and then add a column for "Account Category", which could be used to put accounts into buckets.
Anonymous
7 years agoNot applicable
VS_5 -
The most straightforward solution is to use "Unpivot" in Power Query. This will produce 3 columns: Account, Month, and Revenue.
Then, in your report, you can add a slicer or filter to limit the accounts.