Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello guys,
I'm trying my best as far as my knowledge goes to solve an issue I am having:
Objective: "Sold IF" should only show the "Sold QTY" if "Value" is blank
The issue: I can seem to bring the values on a row context, but no success in summing the totals from "Sold IF".
Sold IF =
VAR Sold_Quantities =
IF( [Value] <> BLANK(), BLANK(),
[Sold QTY]
)
Var calculo =
SUMMARIZE(
factExample,
factExample[Data],
"@Totals",
Sold_Quantities
)
RETURN SUMX(calculo, [@Totals])
I would gladly appreciate anyone that can help me with this.
Solved! Go to Solution.
@nogstavo
Assuming [Value] and [Sold QTY] are measures then I see no reason for the following not to work
Sold IF =
SUMX (
VALUES ( dimProductos[SKU] ),
IF ( [Value] <> BLANK (), BLANK (), [Sold QTY] )
)
Hi @nogstavo
please try
Sold IF =
SUMX (
VALUES ( factExample[Data] ),
IF ( [Value] <> BLANK (), BLANK (), [Sold QTY] )
)
Thank you very much for your reply.
I've tried your syntax but it did not work, unfortunately.
The totals are still blank.
DimSKU is from this table:
Due to testing, I have created a many-to-many relationship, which I know is not a good practice.
@nogstavo
Assuming [Value] and [Sold QTY] are measures then I see no reason for the following not to work
Sold IF =
SUMX (
VALUES ( dimProductos[SKU] ),
IF ( [Value] <> BLANK (), BLANK (), [Sold QTY] )
)
That worked, thank you very much!!!
I'll study your syntax so that I can learn more.
Sold IF =
SUMX (
SUMMARIZE ( factExample, factExample[Data] ),
IF ( [Value] <> BLANK (), BLANK (), [Sold QTY] )
)
Thank you very much for your reply.
I've tried your syntax but it did not work, unfortunately.
The totals are still blank.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |