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
Javi77
Frequent Visitor

M2M Dax Formula

Hi all,

 

I am trying to calculate the Sales per door with dax, but i need some help In my scenario.


My sales table have sales per costumer, but, i have another table whith the % of distribution per door and the totals are

wrong.

You can get the sample data Here..

 

image1.png

 

THX

1 ACCEPTED SOLUTION
Phil_Seamark
Employee
Employee

HI @Javi77

 

I think this calculated measure gets pretty close.

 

AmountPerDoor = 
IF(
    ISFILTERED('Door_Location2'[Costumer]),
    -- THEN --
    [%Dist_per_door]*[Amount_by Costumer],
    -- ELSE --
    SUMX(ALL('Door_Location2'[Costumer]),[%Dist_per_door]*[Amount_by Costumer])

)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

2 REPLIES 2
Phil_Seamark
Employee
Employee

HI @Javi77

 

I think this calculated measure gets pretty close.

 

AmountPerDoor = 
IF(
    ISFILTERED('Door_Location2'[Costumer]),
    -- THEN --
    [%Dist_per_door]*[Amount_by Costumer],
    -- ELSE --
    SUMX(ALL('Door_Location2'[Costumer]),[%Dist_per_door]*[Amount_by Costumer])

)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

its works!!!
Thank you so much...

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

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.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors