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
Hi Guys ,
Here i trying to find the variance each of the line items it is matching exactly but the total of that it is not matching at all ,Can anybody help me to sort it out .
I have AOP, City, Item, COGS , Dim Date Tables ,
Here I'm Trying to get the variance for the COGS between Actual and AOP based on the City ,Item and Month and Year.
Table Structure
AOP
City
COGS
Dim Date
Item
Relationship
Measure Used for
Solved! Go to Solution.
@ganesanr1002
Seems that in the table visual, you have placed the date column from the AOP table this is why you have wrong values for the Actual Price (which apparently you did not notice). You need to use the date column only from the date table as it filters both fact tables.
Variance =
SUMX (
CROSSJOIN (
CROSSJOIN ( VALUES ( 'Item'[Item Name] ), VALUES ( City[City] ) ),
VALUES ( 'Dim Date'[Date] )
),
[Avg AOP Price] - [Actual Price]
)
please try
Variance =
SUMX (
CROSSJOIN (
CROSSJOIN ( VALUES ( Item[Item Nsme] ), VALUES ( City[City] ) ),
VALUES ( 'Dim Date'[Date] )
),
[Avg AOP Price] - [Actual Price]
)
@ganesanr1002
Seems that in the table visual, you have placed the date column from the AOP table this is why you have wrong values for the Actual Price (which apparently you did not notice). You need to use the date column only from the date table as it filters both fact tables.
Variance =
SUMX (
CROSSJOIN (
CROSSJOIN ( VALUES ( 'Item'[Item Name] ), VALUES ( City[City] ) ),
VALUES ( 'Dim Date'[Date] )
),
[Avg AOP Price] - [Actual Price]
)
@tamerj1 thanks i forgot to check date column , It works , Thanks for the solution .
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 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 14 | |
| 8 | |
| 8 | |
| 8 |