Forum Discussion
Power Bi - If condition - Returns multiple rows
Usually these results are due to a relationship issue or (more likely) adding Tranche to the visualisation changes the context and it 'blows up' as some people call it.
Revenue is a measure? We would have to see it please and a data model with sample data would be great (fake data is fine as long as it illustrates the issue)
Also is Tranche a column or measure?
Thanks for the reply. This is what I am tring to do. Here I have three customers a,b and c. Column B is the flag of whether it is headquarter or not and C and D are month and daily revenue
First thing I do is I pushed all the revenue to the "Yes" in column B. So for instance, row 2 and row 3 have the same id and the same month, so the revnenue is pushed up to the "yes" level. Yes has a value of 5 and No has 0. For those that flag is unknown, nothing needs to be pushed up.
Instead, for id a, it has 7 rows
Thanks