Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
hi,
i have 'products' column and also a slicer.
my connection is via direct query.
i want to create new measure\column that holds the whole products (even if one's is selected)
the measure:
CALCULATE(VALUES(uus[CardFriendlyName]),ALLSelected(uus[CardFriendlyName]))
gives me the selected product although the all selected function...
and
CALCULATE(VALUES(uus[CardFriendlyName]),ALL(uus[CardFriendlyName]))
gives me error of
Error Message:
MdxScript(Model) (1, 43) Calculation error in measure 'uus'[Measure 7]: A table of multiple values was supplied where a single value was expected.
is someone have an idea?
thanks a lot!!
A measure requires a scalar value while VALUES() may return more than one value. According to your description, it seems you're looking for a measure as
yourMeasure= CONCATENATEX(ALL(uus),uus[CardFriendlyName],",")
In DirectQuery Mode, to enable the CONCATENATEX function, select File > Options and then Settings > Options > DirectQuery, then selecting the option *Allow unrestricted measures in DirectQuery mode*.
@Eric_Zhang hi, thanks a lot!
actually the syntax is ok but i want to create a column, that i will put into table for example
and not one string
thanks!
@MP_123 wrote:
@Eric_Zhang hi, thanks a lot!
actually the syntax is ok but i want to create a column, that i will put into table for example
and not one string
thanks!
A column put to what table? Based on my test, in DirectQuery mode, calculated table is not allowed. Can you be more specific on your scenario?
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |