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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Foguete
Helper I
Helper I

Measure, if column inferior var then in matrix

Hello,

 

I am facing an issue with a new measure.

I want to use an if statement comparing a column to a var.

However, when I am using the measure in the matrix, it is not returning the good result.

 

Here is what I have so far:

CONECTIVIDAD? =
VAR conectividad = 6.75
VAR _horas = SELECTEDVALUE(TareasXOperariosXCias[Horas])
RETURN
IF(_horas<conectividad, "Revisar", "OK")

 

But here in my matrix, I only have "Revisar" even when "Horas" is higher than the VAR conectividad. For example the second line should show "OK"

Foguete_0-1674213279658.png

 

 

Any idea how I could solve this issue ?

1 ACCEPTED SOLUTION
Mahesh0016
Super User
Super User

@Foguete 
# Create Measure by TareasXOperariosXCias[Horas] Then

Total Value = SUM(TableX[Value])


# Create 

CONECTIVIDAD? = IF([Total Value]<6.75, "Revisar", "OK")

 

Mahesh0016_0-1674216129049.png

 

@Foguete If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

View solution in original post

1 REPLY 1
Mahesh0016
Super User
Super User

@Foguete 
# Create Measure by TareasXOperariosXCias[Horas] Then

Total Value = SUM(TableX[Value])


# Create 

CONECTIVIDAD? = IF([Total Value]<6.75, "Revisar", "OK")

 

Mahesh0016_0-1674216129049.png

 

@Foguete If this post helps, please consider accept as solution to help other members find it more quickly and Appreciate your Kudos.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.