Forum Discussion
sdhn
4 years agoResponsive Resident
Getting one extra count.
Hello All, I have a measure as OpenNMSCounts = COUNTROWS(ALLSELECTED(Source)) -1 I am getting one extra count. For eg: Totals Rows are "30" but its dispalys as: "31". Any help wil...
VahidDM
4 years agoSuper User
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/
sdhn
4 years agoResponsive Resident
It change to
count fo all files only one row count as below:
With old code :
- VahidDM4 years agoSuper User
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/- sdhn4 years agoResponsive Resident
How to upload files. Thanks
- VahidDM4 years agoSuper User
Upload to https://wetransfer.com/ and share thr link here
sdhn