Forum Discussion
Line and Clustered Column Chart, custom line
- Anonymous3 years ago
Hi Nurzh ,
Create another measure and place it on the [line y-axis].
Measure = IF(SELECTEDVALUE('Table'[Period Type])="Actual",[Actual rundown],[Forecast rundown])Change the style of the line under the [format your visual] pane.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Nurzh ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create measures.
Actual rundown =
var _a=COUNTROWS(VALUES('Table'[Doc_number]))
var _b=COUNTROWS(FILTER(ALLSELECTED('Table'),'Table'[Is_reviewed]=TRUE() && 'Table'[Period Type]="Actual"))
return _a-_bForecast rundown =
var _a=COUNTROWS(VALUES('Table'[Doc_number]))
var _b=COUNTROWS(FILTER(ALLSELECTED('Table'),'Table'[Is_reviewed]=FALSE() && 'Table'[Period Type]="Forecast"))
return _a-_b
(3) Then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Thanks for sharing,
Could you please also advise why the line not presented as desired result that I have attached previously, it's devided into 2 lines.
I need to show one single line, for actual and forecast rundown. In my source file totally I have 133 doc number, and their status gradually will be changed to actual from forecast. For example this total 133 doc numbers will run down with changing of their status is_reviewed = true.
- Anonymous3 years agoNot applicable
Hi Nurzh ,
Create another measure and place it on the [line y-axis].
Measure = IF(SELECTEDVALUE('Table'[Period Type])="Actual",[Actual rundown],[Forecast rundown])Change the style of the line under the [format your visual] pane.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.