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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
adgarza
Frequent Visitor

create a calculated column while ignoring row context

I am tyring to calculate montly percentages from a ledger using a date table.

My data looks something like this
image.png

 

So Jan's % = 100, Feb % = 100, Mar % =  100

 

I can't get it to work in DAX.  I've tried

% total = DIVIDE( 
	SUM(Append1[Amount]), 
	CALCULATE( 
		SUM(Append1[Amount]), 
		ALL(Append1[Buying Channel])
		)
)

I'm trying to get DAX to ignore the Buying channel context and just use the date context.

Any ideas?  Is it messing up because of the date table?  

1 ACCEPTED SOLUTION

Hi @adgarza,

 

You can create a measure below: 

 

Measure = CALCULATE(SUM('fact'[Amount]),FILTER(ALL('date'),'date'[Year]=MAX('date'[Year])))

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
CahabaData
Memorable Member
Memorable Member

I believe the first step is to create a measure that is a sum by month.  This can be checked by adding into the visual.

 

 

MonthSum =
CALCULATE (
    SUM ( 'Table'[Amount] ),
    ALLEXCEPT ( 'Table', 'Table'[Month] )
                   )

 

 

www.CahabaData.com

If i put it in a table i want it to look like this.
Year is from a date table, buying channel and amount are from a fact table, and total is the new measure.  Notice it stays the same for each year.

 

Year    Buying Channel	 Amount   	Total
2000	PO			1		6
2000	NONPO			2		6
2001	PCARD			3		6
2001	PO			4		15
2001	NONPO			5		15	
2001	PCARD			6		15
2002	PO			1		6	
2002	NONPO			2		6
2002	PCARD			3		6

 

Hi @adgarza,

 

You can create a measure below: 

 

Measure = CALCULATE(SUM('fact'[Amount]),FILTER(ALL('date'),'date'[Year]=MAX('date'[Year])))

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.