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.
Dears,
There is Many- Many Relation between the Hour & Quantity table.
There is project and date and resource type (labor or equipment) slicer which is getting filtered on the Power bi graph.
I need the quantity for a task to be calculated as below.
Kindly help.
Now since in the Hour table there is only 4 lines, the quantity in power bi is calculated only for 4 lines.
I need the quantity to be calculated for each task irrespective of lines in hour table but must get filtered for project, date and resource type.
Solved! Go to Solution.
You may try dax below if you have a slicer on [id] column:
Total_Qty =
CALCULATE (
SUM ( Quantity[qty] ),
FILTER ( ALL ( Quantity ), Quantity[id] IN VALUES ( Quantity[id] ) )
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create measures like pattern below:
Total_Qty =
CALCULATE ( SUM ( Quantity[qty] ), ALL ( Quantity ) )
Total_Qty =
CALCULATE ( SUM ( Hour[hours] ), ALL ( Hour ) )
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-yuta-msft ,
ALL is ignoring the slicer filters too, i want the value to be filtered with slicer filter.
Will crossfilter help me with this? I need examples or links to understand it better.
You may try dax below if you have a slicer on [id] column:
Total_Qty =
CALCULATE (
SUM ( Quantity[qty] ),
FILTER ( ALL ( Quantity ), Quantity[id] IN VALUES ( Quantity[id] ) )
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please help. I am really in need for solutions and suggestions. Appreaciate your response
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
80 | |
67 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |