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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mvananaken
Helper II
Helper II

Replace empty value in related property IF record count = 0 in specific week number (grid visual)

Hello PB colleagues,

 

In PB desktop I’ve got a grid visual with available hours for direct billable staff, on a weekly basis. (working hours per week minus deployed on project). This Is based on a calculate sum of values of existing rows per employee in the corresponding week. So far, nothing wrong.

 

If there is no projectacitvity in the specific weeknumber, the value in the grid is logically a white space.

 

My question is:  how to replace the white space by the employee hours based on labor contract in the grid, based on a related table property?

 

Thank you! 

 

Screendump: 

question.png

 

 

 The value is calculated with a column:

 

Inzetperweek =
CALCULATE (
SUM ( 'WorkSchedule'[InzetUren] );
ALLEXCEPT (
'WorkSchedule';
'WorkSchedule'[OwnerId.Id];
'WorkSchedule'[Week];
'WorkSchedule'[Jaar]
)
)

 

Further explination in my reply Eric Zhang. 

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee

@mvananaken

 

The thumbnail is blurred and currently I can't enlarge it as usual, there might be some problem in this forum. So I can't get what exactly you're talking about.

 

The visual in your snapshot looks a custom visual, can you type its name so that I can download and test.

 

Regarding replacing, maybe a measure like IF(Inzetperweek=0,someOtherExpresionToGetTheProperty ,Inzetperweek) would work, someOtherExpresionToGetTheProperty depends on what the dataset like in your case.

Hello Eric,

 

Thanks for responding Eric! It's a matrix grid in PB, not a custom visual. I blurred a few names and added some explanation in the screendump: Download

 

is there a way with a measure to drill down to a specic column value (record based) in a related table, based on systemuserid if their aren't any project  (planned) activities in the time span? 

 

Because sometimes no records exists in workschedule (blank values in screendump), I can't use a calculated column in workschedule. 

 

Measure pseudo , but don't no if this kind of logic is possible in PB: 

 

Measure = IF Inzetperweek ISBLANK in timespan visual SEARCH column value laborhours in related table systemuserset   WHERE workschedule.systemuserid = systemuserset.systemuserid ELSE workschedule.Inzeturen

 

Any ideas? 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.