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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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