Forum Discussion
Using IF statement not resulting in correctly summed data
Sounds like on right track, b/c I've noticed that depending on the data range I use to review table, the summed value changes e.g. if I just look at Sept-Dec values, it just sums those.
The way the data goes together:
[NS Act Total] = sum([NS Act]) where [NS Act] is a column of sales data for a variety of countries, by month.
[NS Proj Total] is created same way from another column.
There's a separate date table that's associated with the fact table.
If using the IF statement in this way is the problem, interested in a solution that would combine these two measures.
Bump
- GabrielSantos8 years agoResolver I
Just to clarify, you are happy with the measure as it exists on the table, but when it is summarized at the grand total level, you want it to sum the two measures together?
- JC38 years agoFrequent Visitor
Right. I'm using the IF statement to create a measure of the full year's activity for 2017... combine Actual where I have it, and Projected where I don't, to give me the entire 2017.
Critical to that end is the ability to use it like any other measure... sum, divide, and add to other metrics. But the summation isn't working, and neither are other operations working with it. Key issue that I've run into is that, asked to sum over Jan 2017 - Dec 2017, it only adds up the [NS Act Total], not the whole thing.
- GabrielSantos8 years agoResolver I
Could you share your .pbix file?