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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Include ID with no rows in GL for historical table

Hi,

I'm struggling to find a way to include a project ID that does not have any value (or rows) in my GL table, where I get revenue data from. The table I'm trying to create needs to show the selected period status type for each project. This is why I have created my measure with LASTNONBLANK. The status type can change from one period to another. 
My issue is that I would like to include also projects (in this case 10018) that does not have any records in my GL table, but exists with a status in my historical project list. As you can see, my measure has a + 0 at the end in hope to include 10018. But it ends up showing too many records and wrong because I've added the 0. Without adding + 0, only 10058 shows, which is correct, but would like to have it as shown in my very right table, both of them with correct status type.

 

PBISea_1-1628750720200.png

 

Any suggestions on how to solve this?

 

Thank you so much!

 

 

7 REPLIES 7
lbendlin
Super User
Super User

Your data is missing an index column that would allow to identify what "latest"  means for each project and type. Without that LASTNONBLANK() is rather meaningless.

Anonymous
Not applicable

@lbendlin  Doesn't the date slicer filter work as the index? Or am I missing something here?

Look at the first three rows of your sample data. How do you know which row to pick for the desired outcome?

Anonymous
Not applicable

@lbendlin , The first row with Type "Active". This is the only row that exists with date 02/21. The other two are added to this table once I use + 0 in my measure to include project 10018. Each project has a status type in each period, which means that I want it to look for the status matching the month selected.

What if you have more than one active row per project? How do you define "first" in that case?

Anonymous
Not applicable

How can I have more than one active row per project? The combination of project and period is unique.

In your table visual enable "Show items with no value"

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors