Forum Discussion

mehmetalidumlu's avatar
mehmetalidumlu
Copper Contributor
Mar 29, 2021
Solved

using data in power pivot

hello, i am very new to power pivot and eager to learn abilities. i have a data like the one below. what i want to do is to find the sum of total sales of the customers who have sales via web.   fo...
  • SergeiBaklan's avatar
    SergeiBaklan
    Mar 31, 2021

    mehmetalidumlu 

    Sorry, busy on this week and thank you for the clarification.

    To receive result like this

    we may use two measures

    Sales:=VAR SW =
               SUMX ( Range, Range[sales via web] )
           VAR SE =
               SUMX ( Range, Range[sales via employee] )
           RETURN
               IF ( ISBLANK ( SW ), BLANK (), SW + SE )
    
    and
    
    Total Sales:=SUMX (
        GROUPBY (
            Range,
            Range[customer]
         ),
         [Sales]
    )
    

    Please check in attached file.

Resources