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.
I created a custom table that have 4 different Names. Then I will add a column with a Measure from different tables but with conditional if statement. See target condition below.
Column1
If TextA = TableQueryA_Measure1,
If TextB = TableQueryB_Measure1 .
Column2
If TextA = TableQueryA_Measure2,
If TextB = TableQueryB_Measure2.
Tried using below formula but still having some errors using CUSTOM COLUMN. Thanks in advance
Column1= If ([TextColumn0] = "Text1", TableQueryA_Measure1, TableQueryB_Measure1)
Solved! Go to Solution.
This is now ok. I used a SWITCH code instead of IF statement. Worked like a charm.
This is now ok. I used a SWITCH code instead of IF statement. Worked like a charm.
It looks like you are trying to use measures (created for visuals in powerbi report view) in Power Query. That's definitely not possible.
Maybe if you give more details about what you are trying to achieve I can offer some advice.
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 |
---|---|
15 | |
12 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
8 | |
7 | |
6 |