Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Kim_Sky
Helper II
Helper II

greater than

Hi, 

It might be an easy question but I can't figure out the correct method. 

I have a category list 

Category Sub
A1
A2
B3
B4
 
 

 

TimestampValueSub
5/6/2022401
5/6/20221003
5/6/2022503
 

 

I would like to calculate true or false (if 3 value larger than 60 then true, less than 60 then false ; if 1 value larger than 50 then true, less than 50 then false)

 
I'm try using code below. 
 

Total value

3= CALCULATE( NOT ISEMPTY(Total value),Total value[Value] >60 )

 

Thanks for your help. 

6 REPLIES 6
PabloDeheza
Solution Sage
Solution Sage

Hi there!

You could try something like this:

SWITCH(

TRUE(),

Sub = 3 && Value > 60, TRUE,

Sub = 3 && Value <= 60, FALSE,

Sub = 1 && Value > 50, TRUE,

Sub = 1 && Value <= 50, FALSE,

BLANK()

)

Let me know if that help!

 

Hi @PabloDeheza , 

There shown error in this code. 

Kim_Sky_0-1660740643404.png

FYI, this are my two table. 

 

Kim_Sky_1-1660740662790.png

Kim_Sky_2-1660740670633.png

Thanks for your help. 

 

Make sure to refer to the corresponding column and table, I used sub and value as an example, but it would be 'Total Value'[Sub] and 'Total Value'[Value] instead of just "Sub" and "Value". Also make sure you create this calculated column in Total Value table

Hi @PabloDeheza

However, I have a list of the value 

TimestampValueSub
5/6/2251
5/6/22431
5/6/22201
5/6/2262

 

I wish to get the sum from sub 1 and the value if >50 then true, sub 2>20 then true

 

So it will be telling me true for 1 because is 68 while false for 2 <20. 

Are there any method to do this? 

 

Thanks for your help. 

Hi @PabloDeheza

Is create a new column or use new measure? 

That way would be for a calculated column

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors