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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

show sales of stores ,instead of blank average of sales on the basis of retailer and Municipal code

Hello All,

 

Could you help me in creating one dax

 

As I want to create a measure which show simple sales value and where the value is blank I need to show average of sales number  on the basis of retailer and Municipal code

 

Here is the data like this coming from multiple tabes--

 

ID CLIENTELATLONGRETAILERSUBADENAREGIÓNMUNICIPIAL CODESales
10023240026.944387-101.444751HEBHEBNORTEABASOLO$4062109
1100116.8531086-99.8236533HEBHEB Acapulco 
10378843221.8429068-102.3193214HEBHEBOCCIDENTEAGUASCALIENTES$2372543
10060058721.916947-102.297159HEBHEBOCCIDENTEAGUASCALIENTES$3941051
1709121.9166057-102.2964434HEBHEB AGUASCALIENTES 
709725.78543-100.2251306HEBHEB APODACA 
75025.7401272-100.1594719HEBMI TIENDA APODACA 
741725.7863-100.247979HEBMI TIENDA APODACA 
10188743425.784491-100.22578HEBHEBNORTEAPODACA$14460
10054743922.2756266-97.8331798HEBHEBNORTECIUDAD MADERO$2828375
767625.6493859-100.3605432HEBHEB Garza García 
2034325.6626225-100.3688142HEBHEB Garza García 
1992025.6797838-100.4168299HEBHEB Garza García 
3388525.7845554-100.2727853HEBHEB GENERAL ESCOBEDO 
959325.7923791-100.3308951HEBHEB GENERAL ESCOBEDO 
209254525.848111-100.372641HEBMI TIENDA GENERAL ESCOBEDO 
2175425.7940754-100.3348131HEBMI TIENDA GENERAL ESCOBEDO 
2015125.6788207-100.2377411HEBHEB Guadalupe 
602525.6575028-100.1830291HEBHEB Guadalupe 
1858225.6927006-100.2425814HEBHEB Guadalupe 
10342689720.696906-101.357366HEBHEBCENTROIRAPUATO$3366096

 

Please assist here 

1 REPLY 1
lbendlin
Super User
Super User

Your sample data does not sufficiently cover your described scenario.

 

lbendlin_0-1693698240840.png

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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