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
Markus_W
Regular Visitor

create hundreds of measures at once // DAX Calculate Measure do calculate group of costs at once?

Hello,

I'm still a beginner with Power BI and I hope that someone here can help me.

 

I created the following measure, which also works perfectly:

 

1 MS_employee1 =
2 CALCULATE ([total costs],
3 Daten[PersNr]=1900)

I would like to visualize the costs per employee that this employee has caused per month. 1900 is the personnel number of ONE employee. Since I have 375 employees, I now have to create this measure 375 to visualize the personnel costs for each employee.

 

Is there a DAX formula that I can use to visualize 375 employee costs at once? Not as a sum but individually?

 

Or

 

Is there any help on how I can create the measure 375 times, just with a different personnel number?

 

Thank you in advance for the suppor!

Markus

2 ACCEPTED SOLUTIONS

@Markus_W 

You can have all the personnel numbers selected or just add the personnel number to your legend. I will say if you have a lot of personnel numbers visually this will look too messy.

View solution in original post

Hello,

 

many thanks for the help. Drawing the personnel number in the legend is what I was missing. Don't worry about the many personnel numbers! I will manage them via filters according to departments! 🙂

Best regards
Markus
 

View solution in original post

4 REPLIES 4
nleuck_101
Responsive Resident
Responsive Resident

Hello @Markus_W 

Could you just use your total costs measure and add a slicer to your report with the personnel number and select the personnel number you want to see? That way it would only show you the total costs for the personnel number you've selected.

Hello nleuck_101

 

many thanks for the quick reply!

 

Unfortunately, this does not help me. I want to show in a graph all employee costs at once per employee. All at once!  Like this:

 

Markus_W_0-1681406800104.png

 

A slicer where I select one of many personnel numbers does not help here.

 

Best regards

Markus 

@Markus_W 

You can have all the personnel numbers selected or just add the personnel number to your legend. I will say if you have a lot of personnel numbers visually this will look too messy.

Hello,

 

many thanks for the help. Drawing the personnel number in the legend is what I was missing. Don't worry about the many personnel numbers! I will manage them via filters according to departments! 🙂

Best regards
Markus
 

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors