Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Creating a new Column or Change original - I am trying to Divide a Value in a Column based on the Value's Name. I have multiple NAMEs and VALUEs to change. I am unable to add multiple IF statements. Also if the NAME is not defined how do I pass the original Value to the new column?
Solved! Go to Solution.
You could specify another IF() function in the ResultFalse (aka else) parameter. The last IF() would return the original value. See: IF – DAX Guide For example
Column = IF('DSR'[Name]="CureTimeValue",[VALUE]/10,
IF('DSR'[Name]="SomethingelseValue",[VALUE]/15,
[Value]
)
)
Another, maybe better option is Switch() SWITCH – DAX Guide. Example:
Column = SWITCH('DSR'[Name],
"CureTimeValue",[VALUE]/10,
"SomethingelseValue",[Value]/15,
[Value]
)
If this 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 me know. Thanks a lot!
Hi @JacksonMaui
best is to have all names vs the related value in a lookup (dimension) table. The easiest and most efficient way to proceed after that is to create a one to many relationship. The rest wiuld be a piece of cake.
You could specify another IF() function in the ResultFalse (aka else) parameter. The last IF() would return the original value. See: IF – DAX Guide For example
Column = IF('DSR'[Name]="CureTimeValue",[VALUE]/10,
IF('DSR'[Name]="SomethingelseValue",[VALUE]/15,
[Value]
)
)
Another, maybe better option is Switch() SWITCH – DAX Guide. Example:
Column = SWITCH('DSR'[Name],
"CureTimeValue",[VALUE]/10,
"SomethingelseValue",[Value]/15,
[Value]
)
If this 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 me know. Thanks a lot!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
15 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |