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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhmiller89
Helper V
Helper V

Help creating a measure

I have a column titled "SR Number" and a column "Hours Entered"

 

Each SR Number has multiple rows of "Hours Entered"

 

I need to write a measure to use as a filter to only show SR Numbers when "the total hours entered under an SR Number are greater than or equal to 0.75"

2 ACCEPTED SOLUTIONS
KGrice
Memorable Member
Memorable Member

If you just want to filter out SR Numbers that have fewer than 0.75 hours entered from a table or other visual, you can use a standard measure to calculate the sum of hours, like

 

Hours = SUM(TableName[Hours Entered])

 

When you drag that and your SR Number onto a visual in the Values section, they'll also show up in the Filters section by default. From there, hover over Hours and click the drop-down that appears, then set it to "is greater than or equal to" and enter 0.75 in the input box.

View solution in original post

Anonymous
Not applicable

=calculate(sum(table1[hours entered]), filter(all(table1[hours entered]), sum(table1[hours entered]) >= 0.75))

 

View solution in original post

2 REPLIES 2
KGrice
Memorable Member
Memorable Member

If you just want to filter out SR Numbers that have fewer than 0.75 hours entered from a table or other visual, you can use a standard measure to calculate the sum of hours, like

 

Hours = SUM(TableName[Hours Entered])

 

When you drag that and your SR Number onto a visual in the Values section, they'll also show up in the Filters section by default. From there, hover over Hours and click the drop-down that appears, then set it to "is greater than or equal to" and enter 0.75 in the input box.

Anonymous
Not applicable

=calculate(sum(table1[hours entered]), filter(all(table1[hours entered]), sum(table1[hours entered]) >= 0.75))

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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