Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hola , Tengo una problema cuando comparo datos de 2 años en una tabla, por ejemplo este sku en sales 24 no tiene datos pero si en Sales LY, pero como pueden visualizar el dato de 2023 se corre al 2024 , esto pasa cuando la celda está vacia y asi se combina mostrando una información erronea en algun año .
Alguien me podría ayudar a entender este error ,por favor?
Solved! Go to Solution.
Hi, @ArmandoCasas14
I am glad to help you.
The problem you mentioned may be due to the fact that some cells are empty during the calculation process, resulting in misplaced data.
Perhaps you can add a judgment to the formula to deal with null values:
Sales 24 =
VAR z = [Añoactual]
RETURN
IF (
ISBLANK ( CALCULATE ( Sales[Ventas], Sales[YY] = z ) ),
0,
(
CALCULATE ( Sales[Ventas], Sales[YY] = z ) / 1000
) + 0
)
Sales LY =
VAR X = [Añoanterior]
RETURN
IF (
ISBLANK ( CALCULATE ( Sales[Ventas], Sales[YY] = X ) ),
0,
(
CALCULATE ( Sales[Ventas], Sales[YY] = X ) / 1000
) + 0
)
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @ArmandoCasas14
I am glad to help you.
The problem you mentioned may be due to the fact that some cells are empty during the calculation process, resulting in misplaced data.
Perhaps you can add a judgment to the formula to deal with null values:
Sales 24 =
VAR z = [Añoactual]
RETURN
IF (
ISBLANK ( CALCULATE ( Sales[Ventas], Sales[YY] = z ) ),
0,
(
CALCULATE ( Sales[Ventas], Sales[YY] = z ) / 1000
) + 0
)
Sales LY =
VAR X = [Añoanterior]
RETURN
IF (
ISBLANK ( CALCULATE ( Sales[Ventas], Sales[YY] = X ) ),
0,
(
CALCULATE ( Sales[Ventas], Sales[YY] = X ) / 1000
) + 0
)
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |