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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
CL7777
Helper III
Helper III

filtering over distinct values in a table

I have a table called "jobs" that looks something like this

job number     operation      total job price      cost

1                        cut              100                         36

1                        mill              100                        36

1                        shop            100                        36

2                        lathe             50                         18

2                        shop             50                         18

 

I want to create measures that have total price  and total cost as a function of distinct job numbers. so, for example, if I create a table in a visual and pull in job number and these measures, I want to see

job number    total job price      cost

1                      100                       36

2                       50                        18

 

I DONT want to see:

job number    total job price      cost

1                      300                      108

2                      100                        36

 

So, its like I want a measure that calculates the average (or the max) over each job number and adds that up for distinct job numbers, not for distinct lines in the original table.

 

Any help would be much appreciated

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@CL7777,

 

You could use MIN or MAX since the numbers are same for each line of a job number.

 

Measures:

 

Job Price = MAX ( jobs[total job price] )
Job Cost = MAX ( jobs[cost] )

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

1 REPLY 1
DataInsights
Super User
Super User

@CL7777,

 

You could use MIN or MAX since the numbers are same for each line of a job number.

 

Measures:

 

Job Price = MAX ( jobs[total job price] )
Job Cost = MAX ( jobs[cost] )

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors