Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
i have a table like below.
ID | Name1 | Name2 | Total | shipped | true/false | Ordertype |
8 | A | X | 1000 | 300 | TRUE | W |
15 | A | X | 1200 | FALSE | C | |
7 | C | X | 500 | TRUE | X | |
16 | K | X | 300 | TRUE | W | |
10 | C | Y | 300 | 100 | TRUE | Q |
11 | D | Y | 200 | TRUE | W | |
17 | F | Y | 400 | TRUE | Q |
first i need to find weight average for name2 related shipped (as weight) and total (value which is will be seperated for empty cells.
Solved! Go to Solution.
You could consider this approach:
Total Cost Based Total =
VAR adjcosttotal = (your current expression)
VAR Falserows =
CALCULATE (
COUNTROWS ( Sheet1 ),
ALL(Sheet1), Sheet1[Name]=EARLIER(Sheet1[Name]),
Sheet1[true/false] = FALSE ()
)
RETURN
IF ( Falserows > 0, 0, adjcosttotal )
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You could consider this approach:
Total Cost Based Total =
VAR adjcosttotal = (your current expression)
VAR Falserows =
CALCULATE (
COUNTROWS ( Sheet1 ),
ALL(Sheet1), Sheet1[Name]=EARLIER(Sheet1[Name]),
Sheet1[true/false] = FALSE ()
)
RETURN
IF ( Falserows > 0, 0, adjcosttotal )
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.