- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calculations on 2 fact Tables connected via dimension Table
Hi,
I need to calculate a latest price from a fact Table (UnderlyingDaily), but in my visual I need to place dimension fields from another fact Table. My current "Price Latest" measure only works if I use "Symbol" Field from "Dim_Symbol".
Is there a measure (e.g. with RELATED() function) that can solve my problem or do I need to adjust my relationships/tables?
Many Thanks, Fabian
Price Latest =
CALCULATE(
AVERAGE(Fact_UnderlyingDaily[Close]),
Fact_UnderlyingDaily[Date] = MAX(Fact_UnderlyingDaily[Date])
)
My data model setup:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @fab_incher ,
Not sure, but Based on your explanation, I think you need the measure below:
Measure =
CALCULATE (
[Price Latest],
CROSSFILTER ( Fact_OptionTransaction[Symbol], Dim_Symbols[Symbol], BOTH )
)
If this answer solves your problem, give it a thumbs up and accept it as a solution so the others would find what they need easier.
Regards,
Loran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have the same scenario, but my first table Fact_underlying_daily has symbols, for which there is no data into the second table. When I use the already provided solution, I only can calculate the values which are in the second fact table. Is there any possibility to have all the values from the first fact table and the additional fields from the second table. Currently when the calculation is correct, the field from the second fact table is visualized many times.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @fab_incher ,
Not sure, but Based on your explanation, I think you need the measure below:
Measure =
CALCULATE (
[Price Latest],
CROSSFILTER ( Fact_OptionTransaction[Symbol], Dim_Symbols[Symbol], BOTH )
)
If this answer solves your problem, give it a thumbs up and accept it as a solution so the others would find what they need easier.
Regards,
Loran

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
10-24-2023 11:50 PM | |||
10-11-2023 09:27 PM | |||
Anonymous
| 12-12-2021 10:08 PM | ||
04-11-2024 01:52 AM | |||
02-27-2023 05:14 AM |
User | Count |
---|---|
14 | |
12 | |
11 | |
10 | |
9 |