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
Hi Guys,
I've created a line Chart by using two measures:
Blue line
Green line
The line chart result is as follows:
How can I make sure the blue line which has a value of ZERO in P5 is pulled through?
Is that possible with a measure?
I know that some things unfortunately aren't possible with Measures in PowerBI.
Thank you!!!
Solved! Go to Solution.
Your issue is that the count function returns null instead of 0 if there are no values. So, you need to modify your formula with an IF statement to allow it to return 0 when the count is 0. The formula is below.
Hi nsexton12,
Thank you very much for your help. I will try the advised formula for my learning process.
I literally just sorted the issue slightly differently:
NEW formula Blue line:
Keep learning.
Hi nsexton12,
Thank you very much for your help. I will try the advised formula for my learning process.
I literally just sorted the issue slightly differently:
NEW formula Blue line:
Keep learning.
Nice! There are always many ways to solve each problem. Could you please mark my reply as a solution if it worked for you?
Yes, It did work. Took a little longer as I'm new to PBI and tried to apply it to my situation.
Thank you!!!
Your issue is that the count function returns null instead of 0 if there are no values. So, you need to modify your formula with an IF statement to allow it to return 0 when the count is 0. The formula is below.
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 |
---|---|
94 | |
87 | |
82 | |
71 | |
49 |
User | Count |
---|---|
143 | |
123 | |
107 | |
61 | |
55 |