Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Anonymous
Not applicable

Measure shows incorrect number

Hi everyone, 

 

I want to measure the numbers of customers (N=). Since some columns are unpivot, it is harder to return the number of customers. 

 

The results should be 1628, but it shows 1314, and I can't figure out what's going wrong. You can find the links for the excel- and pbix file below:

 

https://drive.google.com/file/d/1eJ859T50_WloBLHxubMKXT3K8Qb8Qf3-/view?usp=sharing

https://drive.google.com/file/d/1Lbj0uVfganpU6iDPNFh1qoQS3Hujs8rF/view?usp=sharing

 

I hope the links are working (especially the pbix-file). I included the measure, just to be sure:

 

Respondents =
VAR UniekeResponses =
CALCULATETABLE (
SUMMARIZE (
'unpivot';
'unpivot'[Locatie naam];
'unpivot'[Survey];
'unpivot'[Month];
"Respondent"; MIN( 'unpivot'[N=])
)
)
VAR Responses =
SUMX (
UniekeResponses;
[Respondent]
)
RETURN
Responses

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @v-xicai 

 

It is solved!

The measure is working correctly!

Some cells in the column with the number of respondents showed a value, while that cell should be empthy of zero. So, nothing was wrong with the measure, but with the underlying data. 

View solution in original post

5 REPLIES 5
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

I am not sure what desired result would you want. Is it refer to the issue that total sum is not correct? If so , you may refer to the case .

 

Or could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.

 

Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-xicai 

 

Thanks for your reply. 

It is correct that the total sum is not correct, but I don't think it's the same issue as you were referring in the case. 

 

The pbix-file shows the problem clearly, so I hope this link is working:

https://1drv.ms/u/s!AgdRVF_X5GcAjn_AKkSRFsQOBDja?e=0KBMKg

 

Anonymous
Not applicable

Hi @v-xicai 

 

It is solved!

The measure is working correctly!

Some cells in the column with the number of respondents showed a value, while that cell should be empthy of zero. So, nothing was wrong with the measure, but with the underlying data. 

harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

We are uable to accesss the .pbix file.

 

Kindly approve request.

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

Anonymous
Not applicable

Hi @harshnathani 

 

Thanks for your reply. 

If I am correct, you've access to the Excel-file now. 

Downloading the pbix-file should be possible by downloading as an extract. 

 

If hope this works. Or is there another way to share a pbix-file?

 

open file.png

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.