Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
helgi1507
New Member

Measures computes correctly only in a separate table

Hi!

I want to calculate 2 measures in the table, but they computes correctly only in a separate table.

Please help...

 

I've built a star-schema model, where:

 

[StoreID] - is unique store
[ChainID] - a group of unique stores

[CostItemID] - unique cost name
[AccountKey] - a group of costItems

 

Main measure:

 

 

Cost Amount TY = SUM(FactCosts[CostAmount])

 

 

 

Measures with conditions:

 

 

Salary = CALCULATE([Cost Amount TY], DimCostItem[CostItemID] = 876)
92 Account = CALCULATE([Cost Amount TY], DimAccounts[AccountKey] = "92")

 

 

Highlighted green where calculations correctly. In a columns - DimStoresChain[ChainID]

1.png

 

ModelModel

1 REPLY 1
MohammadLoran25
Super User
Super User

Hi @helgi1507 ,

Not Clear. I did not understannd your photos.Please explain more.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.