Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello All,
I have a measure as
Getting error:
"The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."
Hi @sdhn
Try to add a column from your table to the formula:
OpenNMSCounts = Distinct(ALLSELECTED(Source[Column]))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
It was my mistake. I rephrase my question.
we are using following measure to get total counts of each types or files.
Hi @sdhn
Try this:
Source =
CALCULATE (
COUNTROWS ( VALUES ( Source[Source.Name] ) ),
ALLEXCEPT ( Source, Source[Source.Name] )
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
It change to
count fo all files only one row count as below:
With old code :
Can you post sample data as text and expected output? or the PBIX file?
The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.
4. Relation between your tables
Appreciate your Kudos!!
LinkedIn:www.linkedin.com/in/vahid-dm/
How to upload files. Thanks
Hi @sdhn
Try this:
OpenNMSCounts = Distinct(ALLSELECTED(Source))
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Did not work out. Error
screen grayed out
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 9 | |
| 7 | |
| 5 |