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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
yaman123
Post Partisan
Post Partisan

New Function Values

Hi, 

 

Is it possible to create two new functions (highlighted in yellow) - H total and L Total. 

 

H Total is a sum of H Staff and H Production

L Total is a sum of L Staff and L Production

 

Headcount is a measure i created and Function is a column

 

Capture.PNG

 

TIA 

4 REPLIES 4
v-janeyg-msft
Community Support
Community Support

Hi, @yaman123 

 

Do you want to display the values of H Total and L Total separately in card visual? What's wrong with your result in screenshot? Can you show some sample fake data and your desired result like ? So we can help you soon.

 

Best Regards

Janey Guo

 

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

Fowmy
Super User
Super User

@yaman123 

The two new measures that you need.

H Total = 
SUMX(
    VALUES(Table[Function]),
    INT(UPPER(LEFT(Table[Function],1)) = "H") * [Headcount]
) 

L Total = 
SUMX(
    VALUES(Table[Function]),
    INT(UPPER(LEFT(Table[Function],1)) = "L") * [Headcount]
) 
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy 

 

Can a new column be created which will show all functions instead of two new measures. I would like the output to be like the example i attached above? 

@yaman123 

I suggest you keep them as measures rather than adding them to the table. Yes, you can but you need to add those two lines in your Function column and create a measure to check and conditionally populate the measure.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors