March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All,
Need your expert help for the below issue,I'm tring to create a relationship between fact and dim using USERELASTIONSHIP function
Below is the function i'm using to create a relationship.
HoldingRelation =
CALCULATE(DISTINCT('FACT'[CONTRACT]);
USERELATIONSHIP('FACT'[HOLDING_KEY];'DIM'[HOLDING_KEY]) )
However when i create the above formula , i am getting the error "A table of multiple values was supplied where a single value was expected."
Please advice what could be done.
Regards,
athukuri
In your Calculate expression, you are not calculating a single value. You are getting DISTINCT which returns a table! Maybe you wanted to use DistinctCount?
A measure should return one single value. Not a table or multiple rows. If you want multiple values as the output, you can use ConcatenateX to combine them together
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
132 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
203 | |
141 | |
107 | |
73 | |
70 |