Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Solved! Go to Solution.
Hi @Kayla2501 ,
I created some data:
P6 Cashflow:
Project Status Outputs:
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:
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
Hi @Kayla2501 ,
I created some data:
P6 Cashflow:
Project Status Outputs:
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:
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
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?
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |