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
Anonymous
Not applicable

Fix total in Matrix

Dear Power BI community,

I would like to ask for your support. I'm tryng for some time to fix the yearly total of a measure in a matrix visual.

Namely, the situation is the following:

Below I have customer table with Gross Adds, Churn, Customers EoP(end of period) while the Net Adds are calculated with measure. Monthly Net Adds are calculated as Net Adds=Customers EoP - Customers EoP (Previous Month) if previous value exists or Net Adds = Gross Adds +Churn if there is no previous month e.g. January

Table.png

 

I created the following measure :

Net Adds = if (HASONEFILTER('Date'[Calendar Month]),if(ISBLANK([Customers pe LM]),[GrossAdds]+[Churn],[Customers pe]-[Customers pe LM]),xxxx)

but, cannot figure out how to define the formula in the first IF statement for the false condition in case there is no filter for months i.e. total

 

Thanks a lot,

Goran

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

We can create another new measure based on [Net adds].

 

Measure = SUMX('Date',[Net adds])
Capture.PNG
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

To use ISFILTERED function to have a try for the taotal value. If it doesn't meet your requirement, kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here

 

 
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

Hi,

Thank you very much! I created .pbix file and uploaded on OneDrive. Here is the link:

https://1drv.ms/u/s!AliFKUKcaHYIkp4S-0WrPNwcX0OGRA?e=WtFpYP

The correct total for Net Adds should be sum of montlhy values or 8.515

Thank you,

Goran

 

Hi @Anonymous ,

 

We can create another new measure based on [Net adds].

 

Measure = SUMX('Date',[Net adds])
Capture.PNG
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
Anonymous
Not applicable

It works! Thank you very much for your support!

Br, Goran

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.