cancel
Showing results for
Did you mean:
Regular Visitor

## DAX Measure which Filter values from Table

Hi all!

I am trying to achieve two measures which give me the following:

1. The total Amount Invoiced of Projects which have an Amount Invoiced greater than 100K.
2. A count of projects which have a Amount Invoiced greater than 100K.

The following table represent the values that I am looking for. So for the measure 1) I am trying to achieve the value of 4,001,015 and for the measure 2) I am trying to achieve the number of 19.

These values are coming from a Table named "Project Transactions", and I am using two Fields: “Project Name” and “Amount Invoiced”. This table is also filtered to when the Amount Invoiced is greater than 100K.

This seems a straight foward problem, but for some reason I am not being successful. I already tried to use Calculate function, and it didnt work the way I want it.

Any tip on how to solve this? I would be very appreciated!

1 ACCEPTED SOLUTION
Super User IV

Invoiced Over 100k =
VAR vSummary =
SUMMARIZE (
'Project Transactions',
'Project Transactions'[Project Name],
"cInvoiced"SUM ( 'Project Transactions'[Amount Invoided] )
)
RETURN
SUMX (
FILTER (
vSummary,
[cInvoiced] >= 100000
),
[cInvoiced]
)

Regards,

Pat

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

3 REPLIES 3
Regular Visitor

Thank you both for tour suggestions 🙂

Super User IV

@Miguel05 , Try a measure like

sumx(values(Table[Project Name]), if([Amount Invoiced]>100000, [Amount Invoiced], blank()))

Proud to be a Super User!

Super User IV

Invoiced Over 100k =
VAR vSummary =
SUMMARIZE (
'Project Transactions',
'Project Transactions'[Project Name],
"cInvoiced"SUM ( 'Project Transactions'[Amount Invoided] )
)
RETURN
SUMX (
FILTER (
vSummary,
[cInvoiced] >= 100000
),
[cInvoiced]
)

Regards,

Pat

Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

Announcements

#### Happy New Year from Power BI

This is a must watch for a message from Power BI!