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
logan_logan
Frequent Visitor

Share of Base calculation

Hi,
I am using this to get the base volume for the share.
AllVolume = 
VAR Last_Date = LASTDATE(CALENDAR[Period])
RETURN CALCULATE ( SUM ( TABLE[DOLLARS] ),FILTER(All(CALENDAR[Period]),CALENDAR[Period]=Last_Date),   ALL(TABLE[CHANNEL_TYPE] ))        
I am getting result in CARD but if i put it in Matrix, I see the breakdown of Channel_type
 
Channel_TypeAllVolume
A40
B50
Total90

 

However I need the result like this:

Channel_TypeAllVolume
A90
B90
Total90
 
4 REPLIES 4
logan_logan
Frequent Visitor

I used AllEXCEPT() and put all the filters I used for that graph and working. 

logan_logan
Frequent Visitor

Yes, you are right. I have other 3 columns in the filter to consider. 

@logan_logan 

Then have them all inside ALL function

tamerj1
Super User
Super User

Hi @logan_logan 

this should work unless there is/are other column(s) in the filter context that you did not specify in your example or if the relationship between Calendar and Table is bidirectional. 

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.