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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
andreea_e
New Member

I cannot make a sum for a measure i created

Hi all,

 

I want to make a report and see from a number of accounts that I have for how many I don't have contacts. I uploaded the excel file and I made a measure: DistBlank = IF('Submission Form'[Cnt_cntry_m]=BLANK(),1,0); so where it's blank put 1.

I want at the end, in the total, to see the sum for all that "1" I have and I don't know how to do this.

 

Right now it looks like this:

 

measure_Power BI.JPG

 

Can anyone help me with this, please?

 

Thanks,

Andreea 

 

 

3 REPLIES 3
gooranga1
Power Participant
Power Participant

Hi 

 

Is that formula a measure or a calculated column? IF it's a calculated column you could make a measure by summing the calculated column.

Hi,

 

It's a measure.

I tried to use a matrix/matrix preview visualization with my measure in the value but I got the same results. 

 

matrix.JPG

@andreea_e,

Is Cnt_cntry_m  a measure in your table(Submission Form)? If so, I assume that you have a Account field in your table, please create a new measure using the  DAX below and check if it returns your desired result.

Measure  = IF(COUNTROWS(VALUES('Submission Form'[Account]))=1,[Cnt_cntry_m],SUMX(VALUES('Submission Form'[Account]),[Cnt_cntry_m]))


However, if Cnt_cntry_m is a column of your table(Submission Form), create a calculated column instead of measure using the DAX below.

DistBlank = IF('Submission Form'[Cnt_cntry_m]=BLANK(),1,0)
1.PNG

If the above steps don't help, please share sample data of your table so that we can provide you appropriate DAX .



Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.