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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Vishruti
Helper I
Helper I

Power BI Dax Conversion of Sumx in Paginated Reports

Hello,

 

I have following measure in Power BI Desktop report:

% Project Completed =

Divide ( Sumx( Table, (Table[TaskDuration]*(Table[TaskPercentCompleted]/100))), sum(Table[TaskDuration]), blank()) + 0

 

When I add this measure in Paginated report, it is not showing the right values.

 

Can you help me write a custom formula that works in paginated report from the above formula?

 

The problem I am facing is that there is no Sumx function in paginated report. Also, I need it to show 0% in case of blank. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

hi @Vishruti ,

try below condition


=IIF(Sum(Fields!TaskDuration.Value) = 0, 0,
(Sum(Fields!TaskDuration.Value * (Fields!TaskPercentCompleted.Value / 100))) / Sum(Fields!TaskDuration.Value))

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hii @Vishruti ,

try this

= IIF(SUM(Table[TaskDuration]) = 0, 0, SUM(Table[TaskDuration]*Table[TaskPercentCompleted])/100)/SUM(Table[TaskDuration])

Anonymous
Not applicable

hi @Vishruti ,

try below condition


=IIF(Sum(Fields!TaskDuration.Value) = 0, 0,
(Sum(Fields!TaskDuration.Value * (Fields!TaskPercentCompleted.Value / 100))) / Sum(Fields!TaskDuration.Value))

Hello @Anonymous 

Somehow this formula is not working

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.