Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi. This is my first post.
I am trying to build the a combo bar and line chart. How do I NOT show the line that is Zero? Please see picture below. I want to stop the red line at Sep and don't show the zeros.
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
It caused by brackets. Try this.
Actual Cumulative Adj = IF ( CALCULATE ( SUM ( 'Fact Summary'[YTD Actuals] ), FILTER ( ALLSELECTED ( 'DimDate'[FIN_YR_MONTH] ), ISONORAFTER ( 'DimDate'[FIN_YR_MONTH], MAX ( 'DimDate'[FIN_YR_MONTH] ), DESC ) ) ) = 0, BLANK (), CALCULATE ( SUM ( 'Fact Summary'[YTD Actuals] ), FILTER ( ALLSELECTED ( 'DimDate'[FIN_YR_MONTH] ), ISONORAFTER ( 'DimDate'[FIN_YR_MONTH], MAX ( 'DimDate'[FIN_YR_MONTH] ), DESC ) ) ) )
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Try putting your previous formula in VAR
Actual Cumulative Adj = VAR ActualCumAdj = CALCULATE( SUM('Fact Summary'[YTD Actuals]), FILTER( ALLSELECTED('DimDate'[FIN_YR_MONTH]), ISONORAFTER('DimDate'[FIN_YR_MONTH], MAX('DimDate'[FIN_YR_MONTH]), DESC) ) ) RETURN if( ActualCumAdj = 0, BLANK(), ActualCumAdj)
also, the reason of the error is that you missed one ")".
You missed to close the calculate code before putting =0.
You can easily trace it if you will organise your formula with correct spaces and br
I finally had a chance to try your solution out. It works. Awesome.
Hi @Anonymous ,
As @AnkitBI said, you could create a measure to replace 0 to blank. Then when you put it to chart, it will just show the values without 0. In addition, you also could type a start value in Y-axis line to implement it.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please try creating a measure like below. This will return blank, if Line Measure has value 0 else value. Then use this measure in Line Chart.
Measure 5 = if(sum('Table (3)'[Column2]) = 0,blank(),sum('Table (3)'[Column2]))
Thanks
Ankit Jain
Do Mark it as solution if the response resolved your problem. Do like the response if it seems good and helpful.
It really helped, thank you very much!
Hi. Thank for your reply, Ankit.
I tried to use the IF formula to the existing formula. My attempt says that there is too few arguement for the IF function. My formula is :
Hi @Anonymous ,
Try putting your previous formula in VAR
Actual Cumulative Adj = VAR ActualCumAdj = CALCULATE( SUM('Fact Summary'[YTD Actuals]), FILTER( ALLSELECTED('DimDate'[FIN_YR_MONTH]), ISONORAFTER('DimDate'[FIN_YR_MONTH], MAX('DimDate'[FIN_YR_MONTH]), DESC) ) ) RETURN if( ActualCumAdj = 0, BLANK(), ActualCumAdj)
also, the reason of the error is that you missed one ")".
You missed to close the calculate code before putting =0.
You can easily trace it if you will organise your formula with correct spaces and br
Thank you! Your solution works!
Hi @Anonymous ,
It caused by brackets. Try this.
Actual Cumulative Adj = IF ( CALCULATE ( SUM ( 'Fact Summary'[YTD Actuals] ), FILTER ( ALLSELECTED ( 'DimDate'[FIN_YR_MONTH] ), ISONORAFTER ( 'DimDate'[FIN_YR_MONTH], MAX ( 'DimDate'[FIN_YR_MONTH] ), DESC ) ) ) = 0, BLANK (), CALCULATE ( SUM ( 'Fact Summary'[YTD Actuals] ), FILTER ( ALLSELECTED ( 'DimDate'[FIN_YR_MONTH] ), ISONORAFTER ( 'DimDate'[FIN_YR_MONTH], MAX ( 'DimDate'[FIN_YR_MONTH] ), DESC ) ) ) )
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Excellent! Thanks a lot
I finally had a chance to try your solution out. It works. Awesome.
@Anonymous . Please confirm if your issue is resolved?
Thanks
Ankit Jain
Do Mark it as solution if the response resolved your problem. Do like the response if it seems good and helpful.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |