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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
irfanelevated
Helper II
Helper II

Context Filter Aggregation

Hi,

 

I am new to PowerBI, In the below visual all looks good-

 

irfanelevated_0-1627909367393.png

 

However, When I removed the column [Product] the value of Price MOM$ is not as expected.

 

irfanelevated_1-1627909453852.png

 

It should be -26+7-19+2=-36

 

Any help would be appreciated.

 

Thanks,

Irfan

3 REPLIES 3
Fowmy
Super User
Super User

@irfanelevated 

Can you share the DAX formula for MOM$

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi,

 

Thank you for quick response.

Below is the formula-

Price MOM$ = IFERROR( ([PriceCM]-[PricePM]), 0)
 
PriceCM = MAX(Sheet1[PriceOfMonth])
 
PricePM = IF( CALCULATE([PriceCM],PARALLELPERIOD('Date'[Date],-1,MONTH))=BLANK(),[PriceCM], CALCULATE([PriceCM],PARALLELPERIOD('Date'[Date],-1,MONTH)))
 

Hi, @irfanelevated 

Not  sure.

Try to add a new measure as below:

Price MOM$ =
SUMX (
    SUMMARIZE ( 'Sheet1', 'Sheet1'[supplier], "Measure1", [Price MOM$] ),
    [Price MOM$]
)

If it doesn't meet your requirement, please share you sample file for further research.

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.