March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
I would like to show current month and upcoming three month data in the bar chart in power BI, how to show June's bar even it is null?
I have applied below filter but seems useless, many thanks in advanced.
Date Filter =
IF(
COUNTROWS(
FILTER(
Opportunities,
Opportunities[Est. close date] >= TODAY() &&
Opportunities[Est. close date] <= EOMONTH(TODAY(), 3) &&
YEAR(Opportunities[Est. close date]) = YEAR(TODAY())
)
) > 0,
1,
0
)
Solved! Go to Solution.
Hi @rachelbi ,
Are the periods in X axis from Opportunities table as well? Do those months exist in your data? If no to both, you cannot make a month appear if it doesn't exist in your data. What you can do is use a separate calendar table (which is the best practice by the way ), related that to your fact, use the columns from that calendar table and and show items with no data. Please see attached pbix.
Proud to be a Super User!
Hi @rachelbi ,
Are the periods in X axis from Opportunities table as well? Do those months exist in your data? If no to both, you cannot make a month appear if it doesn't exist in your data. What you can do is use a separate calendar table (which is the best practice by the way ), related that to your fact, use the columns from that calendar table and and show items with no data. Please see attached pbix.
Proud to be a Super User!
Thank you so much for both the solution and the clarification of my messy mindset 😀
Hello @rachelbi ,
try using this concept
measure name =
var mainMeasure = you put the dax of the main measure here
return
if( mainMeasure = blank(),0,mainMeasure)
Proud to be a Super User! | |
Hi @rachelbi
if show data with not item does not work you can try below solution:
for missing month you can try to this and intergate with you current approach this should be be solved: https://community.fabric.microsoft.com/t5/Desktop/To-show-all-legend-for-a-pie-chart/m-p/3833551#M12... and use this in one of your axis. If you still have confusion if not able to understand the logic you refer this video: https://youtu.be/WqE2As9RlgA?si=ApPGO3fZG_iwXSWu here in first part same missing months are shown in axis
Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here:www.youtube.com/@Howtosolveprobem
Regards
have you tried show items with no data?
Proud to be a Super User!
Yes I did ..
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |