Forum Discussion

gmichalec's avatar
gmichalec
Frequent Visitor
4 years ago

Returning a static column value based on another column

New PowerBi user here. I have a dynamic table with data like this:

 

CategoryGross MarginGross Margin per unitTarget per unit
A3000$3.25?
B200$5?
C500$7.20?
D100$15?

 

In the 4th column I would like to return a static Target Per Unit value depending on the category. Aside from the exception described below, this value would not be affected by slicers; it is set during the annual budgeting process. 

 

One wrinkle is that the data is referencing two consolidated companies, and that choosing one company over another in that particular slicer would need to change the Target per unit, as the Target is different per company for each category.

 

Thanks in advance for your time and help in this. 

3 Replies