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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
michaelsoee
Frequent Visitor

Summarizecolumns doesn't return correct result

 

Hi there

 

I'm trying to make a tool to monitor task completion; how many tasks needs to be done for each workday, within a task individual deadline (date).

 

My problem is that i can't figure out, how to summarize those task individual goals for each date. I don't have "task activity" for each date in my Calendar table, and this seems to be my issue.

 

pbihelp2.png

 

pbihelp1.png

Orange markings means that there is no registered completed tasks at those dates. Which means there is no match between my "Task" and "Calendar" table for those dates. This I assume, is why my last measure above, doesn't work as intended 🙁

 

Since the Task[Key_Calendar] uses either [Deadline date] or [Completed Date] as the date key, i will have several dates without Task content.

 

I need to return [Total Tasks] - [Completed Tasks (running total)] = [Missing Tasks] for each date. And the [Missing Tasks] shows up as intended both by [Date] and [Task ID].

 

I need to show [Missing Tasks] divided by [Workdays before deadline] to show how many tasks, that needs to be completed for each of the remaining working days, to finish on time.

 

SUMMARIZECOLUMNS by [Date] only works for dates with "Task activity" (match between "Task" and "Calendar"), eventhough [Missing Tasks / Workdays] returns the intended result.
 

I'm really crossing my fingers, that anyone of you might have a solution for this 🤞😁

 

 

 

7 REPLIES 7
tamerj1
Super User
Super User

Hi @michaelsoee 
Please try

Missing Tasks =
SUMX (
    SUMMARIZE ( Tasks, Tasks[Task ID], Kalender[Date] ),
    [Missing Tasks / Workdays]
)

Hi there @tamerj1 unfortunately that gives me the exact same result as my summarizecolumns measure.

 

It still leaves those Calendar[Date]s with no corresponding rows in "Tasks" blank, eventhough [Missing Tasks / Workdays] returns correct results on a Tasks[Task ID]-level for each [Date].

@michaelsoee 

Sorry for that. The measures need to be evaluated separately at the correct granularity. Please use

Missing Tasks / Workdays =
SUMX (
SUMMARIZE ( Tasks, Tasks[Task ID], Kalender[Date] ),
[Missing Tasks] / [Workdays before deadline]
)

@tamerj1 

Hi again, this measure still doesn't return any values on those dates without a date-match in "Task".

 

In addition, it doesn't either return any value on a Task ID level for those dates without a date-match. For instance 08-01-2023: GØDIGAN1 = 23,40... This value doesn't show up with this suggestion.

 

I really appreciate your feedback 🙏

@michaelsoee

Perhaps we need to try with the CROSSJOIN 

Missing Tasks / Workdays =
SUMX (
CROSSJOIN ( VALUES ( Tasks[Task ID] ), VALUES ( Kalender[Date] ) ),
[Missing Tasks] / [Workdays before deadline]
)

Hi again @tamerj1 

 

The above suggestion unfortunately, still gives me the same result.

Still no results for those dates marked with yellow.

 

It seems like my cummulative [Completed tasks (running total] doesn't come into consideration when using SUMMARIZE, SUMMARIZECOLUMNS or CROSSJOIN 🤔

@michaelsoee 
I think the problem is coming from the [Completed Tsks (date)]. Apparently it blanks out the results. Please modify the [Completed Tasks (running total)] measure as follows

Completed Tasks (running total) =
COALESCE (
    CALCULATE (
        [Completed Tsks (date)],
        FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) )
    ),
    0
)

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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