Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
marie28
New Member

Adding different Averages to a Combo Graph if the Slicer is Activated

Hi,

 

I am struggeling to add 2 different averages to a combo chart if the slicer is activated. The following 2 averages are calculated as a DAX measure and I would like them to adjust on the graph as the slections in the slicer change. Do you have any ideas on how I would need to adjust the formula for the calculated averages to make sure it is a dynamic measure? I would like to see the 2 average values either as a column or line in the combo chart.

 

- Average of Sales by City (= Peekskill)

- Average of Sales by County (= Westchester)

 

The x-axis would display the sales reps and the primary y-axis shows the completed sales and the secondary y-axis shows the sales revenue.

 

Sales RepCityCountyState# of Sales CompletedTotal Sales Revenue ($)
DMount VernonWestchesterNY3$600
ENew RochelleWestchesterNY8$1,500
FPeekskillWestchesterNY2$500
HPeekskillWestchesterNY2$1,000
Average for Peekskill WestchesterNY2$750
Average for Westchester WestchesterNY4$900
JOswegoOswegoNY1$500
GOswegoOsewgoNY6$1,200
ALong IslandNassauNY15$6,000
CGlen CoveNassauNY5$2,000
BAlbanyAlbanyNY12$4,000
IWatervlietAlbanyNY4$1,200

 

Thanks for yoru help in advance,

Marie

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @marie28 ,

Nope, you can't direct edit data model table records.

Maybe you can try to use union function to create a new table to manually append custom records with original table records.

Table 2 =
UNION (
    'Table',
    UNION (
        ROW ( "index", 4, "name", "SubTotal" ),
        ROW ( "index", 6, "name", "GrandTotal" )
    )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @marie28 ,

Nope, you can't direct edit data model table records.

Maybe you can try to use union function to create a new table to manually append custom records with original table records.

Table 2 =
UNION (
    'Table',
    UNION (
        ROW ( "index", 4, "name", "SubTotal" ),
        ROW ( "index", 6, "name", "GrandTotal" )
    )
)

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.