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.
Consider an Excel blank sheet where cell A1 = 12, and we define a condition for cell B1 =IF(A1>10,"Cell is greater than 10", "Cell is less than 10"). Result for cell B1 = Cell is greater than 10.
How do I achieve this on Power BI, in a simple table format just like in Excel, preferably multiple lines with conditions and results like the above.
Solved! Go to Solution.
Hi @bmk ,
I created a sample pbix file(see attachment), please check whether that is what you want.
Create a measure or calculated column as below to get the status text:
Measure =
VAR _curvalue =
SELECTEDVALUE ( 'Table'[A] )
RETURN
IF (
_curvalue > 10,
"Cell is greater than 10",
IF ( _curvalue < 10, "Cell is less than 10", "Cell is equal to 10" )
)
Column =
SWITCH (
TRUE (),
'Table'[A] > 10, "Cell is greater than 10",
'Table'[A] < 10, "Cell is less than 10",
"Cell is equal to 10"
)
Best Regards
Thank you!
@bmk with DAX measuere
Measure = switch (true(), calculate(max(fact[colA]))>10, "Cell is greater than 10","Cell is lesser than 10")
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 |
---|---|
80 | |
79 | |
59 | |
36 | |
35 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |