Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
59 | |
22 | |
18 | |
18 | |
16 |
User | Count |
---|---|
86 | |
54 | |
54 | |
38 | |
21 |