Forum Discussion
DAX Expression to choose SSAS tabular model Measure based on Dimensional table selection.
Hi Anonymous ,
Please try:
OFFSET COUNT = COUNT('FACT_B - Offset Transaction'[TNR OFFSET Amt])
Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The Fact_B table is not used as a fact table in the cube tabular design instead it is used as a dimension table and added a relationship between Fact_A and Fact_B. I added count on Fact_B field but i am getting below results.
TRN_FACT_ID, POSTED_DATE, TRN_AMT, TNR OFFSET Amt, OFFSET COUNT
1 20221001 5000 2000 3
1 20221001 5000 3000 3
2 20221001 10000 10000 3
I am getting count as total number of rows in Fact_B table. not as per my selection.
- Anonymous3 years agoNot applicable
We ended up removing Offset count from the cube.