Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Guys
i need to create a cond. column based on two other columns conditions, i tried many ways, but powerbi tell me that i cant use the IF for differente data type (Text and numbers)
E.g. IF (Table1[Column1} = "A" && Table1[Coluumn2} = "Brazil", Table1[CostAdjusted, Table1[Cost])
Can you help me?
@caio_queiroz
Please if your column1 and column2 are having text data and have the data type as text.
New Column =
IF (
AND( Table1[Column1] = "A" , Table1[Column2] = "Brazil"),
Table1[CostAdjusted],
Table1[Cost]
)
You can share your screenshot fo the table where ou are trying to add the column with the error message
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |