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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Priyanshi
New Member

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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