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
RKK
Frequent Visitor

How to add NA to table visual

Hi,

I'm creating a resource report that uses following tables: one listing each resource name and their manager names, and the other one is assignment table records with assignment_id, date, manager_status, week start date, end date, resource name, hours_worked. One to many relationships between resource and assignment table using resource name.

 

The report displays a table with the resource name, manager name, week start date, manager_status, and hours_worked. When a week(week start date) is selected in the slicer, the table will show the assignments submitted that week. If a resource hasn't submitted an assignment, the fields for "worked hours" and "manager status" are blank because no data exists in the backend.

My goal is to replace these blanks with "N/A" to indicate missing submissions. Additionally, I want to count these "N/A" entries and display the total in a card.

 

The check here is there is no data available at the backend to make the changes, because will get entires once resources submitted their assignment sheet.

Can anyone guide me on how to set this up?

 

1 ACCEPTED SOLUTION
Bipin-Lala
Super User
Super User

Hi @RKK ,

 

I worked on a similar report setup recently. We had a User table (containing all user data) and a DailyTimesheet table that captured daily timesheet entries. If a user didn’t submit a timesheet for a particular day, no entry existed, similar to your case.

 

Initially, we used measures to mark missing entries as “Entry Missing,” but this approach complicated calculations and analysis.

Instead, we did the following:

  1. Created a MasterTimesheet table by performing a cross join between the Date (last 3 months) and User ID to generate entries for each user for each day.
  2. Linked MasterTimesheet and DailyTimesheet tables on Week Date and User ID via a left join (or relationship) to pull timesheet data into MasterTimesheet. Submitted days populated data, while unsubmitted days had nulls (replaced with “N/A”).
  3. Linked MasterTimesheet with the User table to include user information for reporting.

This approach provided a complete view of timesheet data, including missing entries, making it easier to analyze. I recommend a similar setup in your case.

 

Let me know if you need further help! 😊




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



View solution in original post

1 REPLY 1
Bipin-Lala
Super User
Super User

Hi @RKK ,

 

I worked on a similar report setup recently. We had a User table (containing all user data) and a DailyTimesheet table that captured daily timesheet entries. If a user didn’t submit a timesheet for a particular day, no entry existed, similar to your case.

 

Initially, we used measures to mark missing entries as “Entry Missing,” but this approach complicated calculations and analysis.

Instead, we did the following:

  1. Created a MasterTimesheet table by performing a cross join between the Date (last 3 months) and User ID to generate entries for each user for each day.
  2. Linked MasterTimesheet and DailyTimesheet tables on Week Date and User ID via a left join (or relationship) to pull timesheet data into MasterTimesheet. Submitted days populated data, while unsubmitted days had nulls (replaced with “N/A”).
  3. Linked MasterTimesheet with the User table to include user information for reporting.

This approach provided a complete view of timesheet data, including missing entries, making it easier to analyze. I recommend a similar setup in your case.

 

Let me know if you need further help! 😊




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


Regards,

Bipin Lala | Business Intelligence Developer



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!

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.