March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi, I'm hoping someone can help me with how to do this. I have a table that looks like this...
date | region | attribute | value |
1/07/2023 | GAR | target_2023 | 78 |
1/07/2023 | YXR | target_2023 | 29 |
1/07/2023 | BMR | target_2023 | 78 |
1/07/2023 | GAR | actual_2023 | 82 |
1/07/2023 | YXR | actual_2023 | 31 |
1/07/2023 | BMR | actual_2023 | 82 |
1/07/2024 | GAR | target_2024 | 166 |
1/07/2024 | YXR | target_2024 | 54 |
1/07/2024 | BMR | target_2024 | 180 |
1/07/2024 | GAR | actual_2024 | 82 |
1/07/2024 | YXR | actual_2024 | 31 |
1/07/2024 | BMR | actual_2024 | 82 |
1/07/2025 | GAR | target_2025 | 248 |
1/07/2025 | YXR | target_2025 | 81 |
1/07/2025 | BMR | target_2025 | 271 |
1/07/2026 | GAR | target_2026 | 290 |
1/07/2026 | YXR | target_2026 | 95 |
1/07/2026 | BMR | target_2026 | 315 |
1/07/2027 | GAR | target_2027 | 310 |
1/07/2027 | YXR | target_2027 | 101 |
1/07/2027 | BMR | target_2027 | 338 |
The outcome I'm hoping for is a line and clustered column chart, where the line values are the summed if the attribute column contains "target" (Line y-axis) and the bars are summed if it contains "actual" (Column y-axis).
I will use a slicer that will filter this finished chart by region.
Thanks 🙂
Solved! Go to Solution.
This is the source data
Split column by "_" delimiter
Renaming the columns
Created mesures for Actual and Target
Final output with target in line and actual in column and x axis (date) formatted in Categorical.
Did you select line and clustered column chart from the visual
Also create the mesures as shown the prior snapshots.
Oh hang on, I forgot to change one thing in my original data. It's working now ... thanks so much!
Yes I did, that exact visual
This is the source data
Split column by "_" delimiter
Renaming the columns
Created mesures for Actual and Target
Final output with target in line and actual in column and x axis (date) formatted in Categorical.
Hi Rakesh1705, thanks, I followed your screenshots and created the measures but I still can't seem to get the "actual" values (bars) on my chart, including formatting as Categorical. Any ideas?
Hi Irwan, thanks for getting back to me. I applied your DAX to my real data and I get the line for the "target" values but no bar for the "actual" values. I have set the x and y axis as per your screenshot. Any ideas what might be wrong? And sorry, the data I provided for "actual_2024" attributes were a copy and paste and I forgot to change these figures to something different.
Hello @onedayover
please check if this can accomodate your need.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |