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 have been trying to use a gauge chart to show the achieved% vs target%. Is there a way I can integrate these two tables (attached is the screenshot) and show data using a gauge chart? Also, I have inserted two slicers in my dashboard, one is showing Major Lines and the other is showing Minor Lines.
Basic idea is, if the user clicks on Property then the gauge chart should show achieved =6.5% and target =7%, and if the user further clicks on Commercial (in another slicer) then the gauge chart should show achieved =4.5% and the target =4%, and if the user further clicks on the USA (in some chart) than gauge chart should show achieved =8% and target =5%
Is there any DAX Measure that I can use to join these 2 tables and achieve what I want to show?
Thank you
Solved! Go to Solution.
Hi @Akshaya_Jain ,
Here are the steps you can follow:
1. Power Query – Home – Append Queries -- Append Queries as new.
2. Select [Achieved Performance] and [Target] – Transform – Unpivot Columns.
Result:
3. Create measure.
Measure =
SWITCH(
TRUE(),
HASONEVALUE('Append1'[Major Line])&&NOT(HASONEVALUE('Append1'[Minor Line]))&&NOT(HASONEFILTER('Append1'[Country])),
SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=BLANK()&&'Append1'[Country]=BLANK()),
[Value])
,
HASONEVALUE('Append1'[Major Line])&&HASONEVALUE('Append1'[Minor Line])&&NOT(HASONEFILTER('Append1'[Country])),
SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=MAX('Append1'[Minor Line])&&'Append1'[Country]=BLANK()),
[Value]),
HASONEVALUE('Append1'[Major Line])&&HASONEVALUE('Append1'[Minor Line])&&HASONEFILTER('Append1'[Country]), SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=MAX('Append1'[Minor Line])&&'Append1'[Country]=MAX('Append1'[Country])),
[Value]))
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Akshaya_Jain ,
Here are the steps you can follow:
1. Power Query – Home – Append Queries -- Append Queries as new.
2. Select [Achieved Performance] and [Target] – Transform – Unpivot Columns.
Result:
3. Create measure.
Measure =
SWITCH(
TRUE(),
HASONEVALUE('Append1'[Major Line])&&NOT(HASONEVALUE('Append1'[Minor Line]))&&NOT(HASONEFILTER('Append1'[Country])),
SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=BLANK()&&'Append1'[Country]=BLANK()),
[Value])
,
HASONEVALUE('Append1'[Major Line])&&HASONEVALUE('Append1'[Minor Line])&&NOT(HASONEFILTER('Append1'[Country])),
SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=MAX('Append1'[Minor Line])&&'Append1'[Country]=BLANK()),
[Value]),
HASONEVALUE('Append1'[Major Line])&&HASONEVALUE('Append1'[Minor Line])&&HASONEFILTER('Append1'[Country]), SUMX(
FILTER(ALLSELECTED('Append1'),
'Append1'[Attribute]=MAX('Append1'[Attribute])&&'Append1'[Major Line]=MAX('Append1'[Major Line])&&'Append1'[Minor Line]=MAX('Append1'[Minor Line])&&'Append1'[Country]=MAX('Append1'[Country])),
[Value]))
4. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |