Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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 ..
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
92 | |
86 | |
84 | |
66 | |
49 |
User | Count |
---|---|
140 | |
113 | |
106 | |
64 | |
60 |