Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have 2 tables in SSAS tabular that are structured like the attached image. I want to add a calculated column to FACT.Sales that basically says if the companykey in FACT.Sales has any related entry in Ref.CompStatus with an ID of 4 or 2.
So based on the above my ideal output would look like this
I have got as far as used the RELATED function but not sure where to go from here?
Appreciate any advice/help!
Solved! Go to Solution.
@Anonymous , a New column
var _cnt1 = countx(filter(Compstatus = compstatus[salesId] = fact[SalesId] && Compstatus[StatusID] in {2,4} ),compsatus[salesID])
return
if(isblank(_cnt1),0,1)
@Anonymous , a New column
var _cnt1 = countx(filter(Compstatus = compstatus[salesId] = fact[SalesId] && Compstatus[StatusID] in {2,4} ),compsatus[salesID])
return
if(isblank(_cnt1),0,1)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
97 | |
69 | |
46 | |
39 | |
33 |
User | Count |
---|---|
158 | |
102 | |
60 | |
43 | |
40 |