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.
Hi every one
When I select the if function, the dex bar does not show the columns that I select
please help me
🛑
It seems that you use the if() function in measure, when you use the condition, you need to add some function then the column can display,
e.g
Measure =
IF ( SELECTEDVALUE ( table[id] ) = 1, 1, 0 )
If the column type is number, you can use the function as @Idrissshatila mentioned, such as sum(), max() and so on, if the column type is text you can use the function such as, max(), selectedvalue().
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @farhad_mahan ,
the if function in a measure only takes functions like sum(column) or min, avg or etc.. but it doesn't take a column value directly.
but when you're using if in a calculated column then you could reference the column directly.
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
Follow me on Linkedin
Vote for my Community Mobile App Idea 💡
Proud to be a Super User! | |
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 |
---|---|
58 | |
55 | |
55 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
40 |