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.
Hi,
I have 3 columns "Current Price", "Previous Price" & "Savings". The formulas are as below.
Current Price =
CALCULATE(PurchaseReceipts[Total Invoice wo Tax]/Sum(PurchaseReceipts[qty]))
Previous Price =
CALCULATE(PurchaseReceipts[Current Price], PREVIOUSMONTH(DateTable[Date]))
Savings =
If(HASONEFILTER(Products[Product Name]),
If(
OR(isblank(PurchaseReceipts[Current Price]),
isblank(PurchaseReceipts[Previous Price])),
blank(),
PurchaseReceipts[Previous Price] - PurchaseReceipts[Current Price]
),
CALCULATE(
PurchaseReceipts[Previous Price] - PurchaseReceipts[Current Price],
ALLSELECTED(PurchaseReceipts) ,VALUES(Products)
)
)
The problem is evident, I need totals of the "Savings" column and BLANKS in "current price" & "previous price" as shown below
@Majidbhatti is it kindly possible to post a sample pbix please?
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 |
---|---|
109 | |
96 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |