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

Issue with DAX: getting a score for a team in a specific week.

Hi fellow Power BI enthousiasts,

 

Introduction

I'm working a power BI dashboard that monitors the performance of teams on different scores for every week for an organisation I'm working for.

 

Data

At unregelar moments I receive new data for a specfic week for all teams. This can be once a month, but also twice. The below table displays the data I'm receiving:

Account Project      CommentWeeknumber GeneralScore*
AProject AGood performance23
AProject BWorking hard21
BProject CGetting better18
BProject D Not yet on full capacity 16

* GeneralScore is a score of team performance that is 1, 2, or 3. 

 

I want to display this data in the following table in PBI:

Account Project      CommentWeeknumber  GeneralScoreT-2**
AProject AGood performance23
AProject BWorking hard21
BProject CGetting better1***
BProject D Not yet on full capacity 1***

 

Issue

** Is the GeneralScore of a team on CURRENTWEEK-2. So currently we are in week 4, which will means that the column is displaying the GeneralScores for all teams on week 2.

***If there is no data on CURRENTWEEK-2 for an project, it is important the the row is still displayed, only that cel is then empty.

 

I tried to create different DAX measures to get this working. However, I'm having issues with the rows that have no data for a specific week, they are not displayed in the table. 

 

DAX measure that I tried

Option 1

 

 

General-2 = 
CALCULATE (
    MAX ( 'Delivery data'[GeneralScore] ),
    ALLEXCEPT ( 'table', 
    'Delivery data'[Account],
    'Delivery data'[Project],
    'Delivery data'[Comment]),
    'Delivery data'[Weeknumber] = WEEKNUM(TODAY(), 21) -2
)

 

 

Option 2

 

 

General-2 = 
CALCULATE (
    MAX( 'table'[GeneralScore] ),
    ALLEXCEPT ( 'table', 'table'[Project]),
    'table'[Weeknumber] = WEEKNUM(TODAY(), 21) - 2
)

 

 

Both options have the same issue: no rows are displayed if there is no data on week CURRENTWEEK-2 for a team. 

 

Could some please help with this issue? I'm really curious what I'm doing wrong. Please let me know if you need additional information.

 

Thanks in advance!

1 REPLY 1
ERD
Community Champion
Community Champion

Hi @Anonymous ,

You can use Show items with no data feature: Show items with no data in Power BI - Power BI | Microsoft Learn

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Stand with Ukraine!


Here is an official way you can support Ukraine financially:
Come Back Alive foundation: https://savelife.in.ua/en/

Thank you!

Helpful resources

Announcements
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.