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
Syndicate_Admin
Administrator
Administrator

BLANK DATA

Hello everyone, I have been presented with a very particular case. contextualize a little:

I have a column called Adults, when I start by observing that this column is formatted as "Text" so I decide to change it to Integer.

According to, I proceed to highlight the sum of Adults that are in the table SUM (Table [adults]), but when performing the Sum gives me 0, I tried to calculate the number of adults -Calculate (CountA (Table [Adults]), Table [adult]> 0), the result is White,

I tried Calcualte (Table [Adult]), It gives me a tip but it is not the real one. in the excel table corroborates that the amount or count is 500 and with the formula exposed gives me 200. I don't know what could be going 😞

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@Syndicate_Admin 

I guess you are creating measures, try add all(table) to the context, as well as for the sum.

Calculate (CountA (Table [Adults]), Filter (All(table), Table [adult]> 0)

calculate (SUM (Table [adults]),All(Table))

 


Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Syndicate_Admin ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Try like

countrows(Filter(Table, Table [adult]> 0))

 

or

countrows(Filter(Table, isblank(Table [adult]) || Table [adult]<> 0))

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.