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
meeradominic
Frequent Visitor

How to SUM text fields

Hi,

 

I have table like below.

meeradominic_0-1654581594275.png

This is an example of a request's data. There will be diffrent types of requests. Each can have variable number of fields. 
The request is a separate table which has a relationship to the above fields table. From the example above, I need to create a measure showing the total number of claims and total receipt. 
Problem: Since my field value is a text coumn. I can't directly take the Sum of that column. I tried below. That did not work. Please help.

 

Total Claims = CALCULATE(SUM(VALUE('Request Parameters'[Field Value])),'Request Type'[Request Name]="My Request Type",'Request Parameters'[DisplayName]="Number of claims")
**Request Parameters - is shown in image
** Request Type is a dimension table having all the requests types
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@meeradominic , In power query separate out text and non text rows and then create a measure

View solution in original post

3 REPLIES 3
meeradominic
Frequent Visitor

@amitchandak I duplicated the field_value column and changed the type of the column to decimal. And replaced all the errors with null. This resolved my issue. Thanks!!

meeradominic
Frequent Visitor

@Amit could you throw some light on how I can split number & text in power Query?

amitchandak
Super User
Super User

@meeradominic , In power query separate out text and non text rows and then create a measure

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.