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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
moei
Frequent Visitor

How to create missing rows

My data:

ElementIDElementnameElementCategoryDate
12445XXXX.docxWord01-01-2020
53242xxxx.pptxPowerpoint01-01-2020
32455xxxxxx.mpgVideo01-02-2020
23423xcvsdfQuiz01-02-2020

 

My problem:

I have the following Element categories:

Word

Powerpoint

Video

Quiz

I do a running total of these and this results in a table with a total for each category for each date. However if for example no word file is created on a specific date then its not part of the running total. How do I go about creating empty rows for each category that is not represented in date range. I hope this makes sense 🙂

Any suggestions?

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @moei 

 

So to achieve this you can create a dimension table for your dates and categories, create a relationship with your current table and use columns from dimensions table in the visuals, and add +0 to your Measure so it looks something like.

Count Rows = COUNTROWS( table ) +0 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

4 REPLIES 4
Mariusz
Community Champion
Community Champion

Hi @moei 

 

Can you post a screenshot of what you currently have and what you expect?

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

moei
Frequent Visitor

Hi @Mariusz

Sure, I will try to explain it in another way.

Below is a screenshot of what I have before I do the running totals.

data.png

The first date "28.september" only has 2 rows because no other categories of files were created that day.

These are alle my categories.

cat.png

I need every date to have all categories represented. So if no files in the other categories are created the 28.september then they should be represented with a row and a value of 0.

Best Regards,

Morten

Mariusz
Community Champion
Community Champion

Hi @moei 

 

So to achieve this you can create a dimension table for your dates and categories, create a relationship with your current table and use columns from dimensions table in the visuals, and add +0 to your Measure so it looks something like.

Count Rows = COUNTROWS( table ) +0 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

moei
Frequent Visitor

Do you mean a dimensiontable that contains date and catagories or two dimensiontable one for dates and another for the categories?

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.