The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello Everyone ..
I download csv files from a system every week. Sometimes there is no data for that week. Therefore, if there is no data in that csv, PowerBI will say “this table is empty” for that week's files. How can I change the table to “zero” if there is no data in the csv file of that week. If there data it does nothing.
Column -> Argument /Filters/Count
Thank you !
Hi @u4us1923 ,
As a workaround, you can create a date table with full dates and then merge with your source data to fill in the missing dates.
Here’s a step-by-step guide to achieve this:
1.Create a list of all dates within the range: Refer to Create Calendar Table Using Power Query M Language (mssqltips.com)
2.Merge the list of dates with your data: Merge this list with your existing data to ensure every date within the range is represented.
3.Fill missing dates with zero quantity: Replace any missing quantities with 0.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
use if function with any formula presented in the below youtube post
https://youtu.be/DHB2ejpEGxU?si=CdoQ0wWjh9nOivEV
Thank you for the reply .. but .. I don't want to create a new table. I also loaded data from csv... my question is different. Some weeks there is data for all but some weeks there is no data for http400 or http500. for example; If there is no data for http500 that week I want to create a new row http500 -> Count --> 0 (zero)