Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I would like ask you about how I can get values when the date is not in my table, for example:
If I have a table with the follow info:
Date Score Week
1/01/2018 1 1
8/01/2018 1 2
22/01/2018 1 4
If I do a graph, it is going to be stratight line when I want a drop in week 3, but as I dont have date it is just a line.
How can I fix this having a Zero in week 3?
Thanks
Solved! Go to Solution.
@Anonymous
One way is to create a new calculated table for chart purpose
From the Modelling Tab >>>New Table
TableforChart = GENERATESERIES ( MIN ( TableName[Week] ), MAX ( TableName[Week] ) )
This will give you a single column table of week numbers including weeks that are missing in your table. Rename the Column to "week"
Then create a relationship between yourtable and New Table.
Then add a calculated column to it
Score = IF ( ISBLANK ( RELATED ( TableName[Score] ) ), 0, RELATED ( TableName[Score] ) )
Now create a chart using this New Table
Hi @Anonymous,
Could you please mark the proper answer as solution?
Best Regards!
Dale
@Anonymous
One way is to create a new calculated table for chart purpose
From the Modelling Tab >>>New Table
TableforChart = GENERATESERIES ( MIN ( TableName[Week] ), MAX ( TableName[Week] ) )
This will give you a single column table of week numbers including weeks that are missing in your table. Rename the Column to "week"
Then create a relationship between yourtable and New Table.
Then add a calculated column to it
Score = IF ( ISBLANK ( RELATED ( TableName[Score] ) ), 0, RELATED ( TableName[Score] ) )
Now create a chart using this New Table
@Anonymous
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |