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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Syndicate_Admin
Administrator
Administrator

Parameter

Hello! I have a table that has a number of crimes and some have victims (deaths). I wanted to know how to make a parameter with victims by calculating the average number of crimes for each victim. There may be up to 1-10 victims in a crime, but it doesn't always happen. E.g. each quantos crimes average happens a 1 victim and thus follow up to 10 with the parameter.

Sebitagol_0-1651102946165.png

2 REPLIES 2
amitchandak
Super User
Super User

@Syndicate_Admin , You need a measure like

 

AverageX(Values(Table[victim]), calculate(Sum(Table[Count of victim])) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Sorry but it doesn't work for me, I want to do it with a PARAMETER =

Number of Victims = GENERATESERIES(1, 10, 1) every now 1-10 victims will appear for every n crimes (average number of crimes). Ex: One victim will appear every 9000 crimes, two victims in a crime will appear every 12000 crimes, three victims in a crime will appear every 34000 crimes and so on until reaching 10. The victims come from id_tipo 1 = Homicide and id_tipo 2 = Injuries (serious traffic accidents). I hope you have understood me and thank you for taking the time to answer me

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.