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
Kayla2501
Regular Visitor

New to DAX and Struggling with Filtering

Hi All, 

 

Hopefully I can get some help. I have taken over a dashboard in my new job and my skills in DAX need some work. 

 

I basically need to multiply Cost by Confidence factor if status date = current. 

 

This is what I have so far which is incorrect but seem stuck. 

 

Measure =
Var x = [Current Status (Date)]
CALCULATE(
SUMX('P6 Cashflow', 'P6 Cashflow'[Cost]) * SUMX('Project Status Outputs', 'Project Status Outputs'[Confidence Factor])
FILTER('Project Status Outputs'[Status Dates] = var x)
)
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Kayla2501 ,

I created some data:

P6 Cashflow:

vyangliumsft_0-1657536173847.png

Project Status Outputs:

vyangliumsft_1-1657536173849.png

Here are the steps you can follow:

1. Create measure.

Measure_group =
SUM('P6 Cashflow'[Cost])
*
SUMX(
    FILTER(ALL('Project Status Outputs'),
    'Project Status Outputs'[Status Dates]=MAX('P6 Cashflow'[Current Status (Date)])&&'Project Status Outputs'[numbers]=MAX('Project Status Outputs'[numbers])),[Confidence Factor])

2. Result:

vyangliumsft_2-1657536173850.png

If you need pbix, please click here.

If I have misunderstood your meaning, please provide your desired output.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @Kayla2501 ,

I created some data:

P6 Cashflow:

vyangliumsft_0-1657536173847.png

Project Status Outputs:

vyangliumsft_1-1657536173849.png

Here are the steps you can follow:

1. Create measure.

Measure_group =
SUM('P6 Cashflow'[Cost])
*
SUMX(
    FILTER(ALL('Project Status Outputs'),
    'Project Status Outputs'[Status Dates]=MAX('P6 Cashflow'[Current Status (Date)])&&'Project Status Outputs'[numbers]=MAX('Project Status Outputs'[numbers])),[Confidence Factor])

2. Result:

vyangliumsft_2-1657536173850.png

If you need pbix, please click here.

If I have misunderstood your meaning, please provide your desired output.

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

tamerj1
Super User
Super User

Hi @Kayla2501 
How are the two tables related to each other? What are you slicing by in your report? How does your visula look like?

Two tables are related by contract numbers. 

 

I have no visual or slicer yet but will be contract number and the cost by confidence value

@Kayla2501 
Thank you for the clarification. Which table is the one side and which one is the many side?

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.