The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I am trying to create Line and Clustered Column Chart, with custom lines
Shortcut of dataset is below:
Is_reviewed | Doc_number | Forecast Dates | Period Type |
True | 61-BDIN-52001 | June 2023 | Actual |
False | 61-BFIN-21012 | June 2023 | Forecast |
True | 61-HS-51762-3 | June 2023 | Actual |
True | 61-NAS-52083 | June 2023 | Actual |
False | 61-NFI-52007 | June 2023 | Forecast |
False | 61-NGC-52010-1 | June 2023 | Forecast |
False | 61-NGC-52071 | June 2023 | Forecast |
False | 61-NGT-52060 | June 2023 | Forecast |
The goal is to create custom line that shows:
1. Actual rundown: Sum of all Doc_numbers and minus only count of Doc_numbers with Is_reviewed = True (dataset will be updated to true if someone will review this doc number) and Period Type=Actual
2. Forecast rundown: Sum of all Doc_numbers and minus count of Doc_numbers with Is_reviewed = False and Period Type=Forecast
The correct version of chart was in Excel below, and I am trying create in Power BI:
Please help to create measures for this 2 additional lines.
Many thanks!
Hi @Nurzh,
I'd like to suggest you add a new table with these full categories to use on legend field. Then you can write Dax formulas to look up and aggregate raw table records based on current date axis and legend category.
If these also not help, you can also consider using script-based visuals(R, Python) to manually plot the graphs that you wanted.
Regards,
Xiaoxin Sheng
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
9 | |
7 |