In a Matrix visual the column shows
MoM Diff ( Current month-Previous Month)
Neg Diff (Negative values in MoM Diff)
Main objective is to obtain the total for "Neg Diff" (columns total).
Sales, MoM Diff and Neg Diff are measures.
Required output shown below
Thanks in advance.
The data table is shown below,
The objective is to calculate the month over month sales difference and take sum of total negative sales difference for each month.
Required output is shown below,
I wasnot able to obtain this on Power BI, what I got is shown below, the total for MoM change and MoM -ve is the same.
I tired another formula with MoM -ve,
Please help with a solution.
The main objective is to find total for negative month difference in sales.
Thanks in advance.
@bharathsurya Hey ,
Use below formula
I think it will help to remove the date context when creating the list of customers.
MoM -ve_3 = VAR Customers = CALCULATETABLE ( VALUES ( Sales[Customer] ), ALLSELECTED ( 'Calendar' ) ) RETURN SUMX ( Customers, [MoM Change] )
Its working fine when all months are selected. When only one month is selected it dsnt work. And even when two consecutive months are selected it works.
Can you find a solution for that too?
// Something like this... // Adjust if needed. [Neg MoM] = var negSum = SUMX( Customer, // the Customer dimension var diff = [MoM Diff] return ( diff < 0 ) * diff ) return if( negSum, negSum )
I can't tell you more since you don't give me more information and I don't know your model. My guess was the best I could do. In my model it does work.
Check out the News & Announcements to learn more.
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Microsoft received the highest score of any vendor in both the strategy and current offering categories.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.