简体   繁体   中英

Creating calculated measure on a measure by relating it with another measure

I need to create calculated measure on a measure by relating with another measure, to explain the scenario i am taking a typical marks and subjects example.

Consider there are 2 measure groups one is Subject Facts, Mark Facts and 1 dimension Subject Dim.

Subject Facts measure groups contains Subjects Count (all subjects count), Science Subjects Count (only science subjects count) Mark Facts contains one measure Marks

Subject Dimension contains Subject ID dim

Now i need to create calculated measure using Marks measure which gives only science subject marks

PS: When i drag subject dim on rows and subject measures on columns, subjects count measures is 1 for all subjects and science subjects count is 0 or 1 (This is how the relation exists)

Can anyone please help me in creating calculated measure

我得到了答案。

[Measure].[Science Marks] AS SUM(FILTER([Subject Dim].MEMBERS,[Measures].[Subjects Count]>0),[Measures].[Subjects Marks])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM