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.
Dear All,
I'm trying to create a custom column as follows:
Thank you a lot, error is gone!
Problem is: it doesn't work the following in red:
Hi @gianmarco ,
Please try code as below.
Column =
VAR SUPPLIERS =
CALCULATE (
SUM ( Cashflow[Importo (+/-)] ),
FILTER ( Cashflow, Cashflow[Source] = 0 && Cashflow[Categoria] = "FORNITORI" )
)
VAR PREVISIONE_FORNITORI_CURRENT = Cashflow[Source] = 5
&& Cashflow[Completed_month] = 0
&& Cashflow[Par1] = 1
VAR CLIENTS =
CALCULATE (
SUM ( Cashflow[Importo (+/-)] ),
FILTER ( Cashflow, Cashflow[Source] = 0 && Cashflow[Categoria] = "CLIENTI" )
)
VAR PREVISIONE_CLIENTI_CURRENT = Cashflow[Source] = 5
&& Cashflow[Completed_month] = 0
&& Cashflow[Par1] = 0
VAR PREVISIONALE_PAST = Cashflow[Source] = 5
&& Cashflow[Completed_month] = 1
RETURN
IF (
PREVISIONALE_PAST,
0,
IF (
PREVISIONE_FORNITORI_CURRENT,
Cashflow[Importo (+/-)] - ( SUPPLIERS ),
IF (
PREVISIONE_CLIENTI_CURRENT,
Cashflow[Importo (+/-)] - ( CLIENTS ),
Cashflow[Importo (+/-)]
)
)
)
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It seems not working properly. Again, it doesn't subtract anything 😞
This pattern is likely the issue. I see it in two places. Also, are you sure you want to create a column for this? Which table are you putting it on? A measure may be better.
VALUES ( Cashflow[Categoria] ) = "FORNITORI"
Try just
Cashflow[Categoria] = "FORNITORI"
Pat
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 |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |