cancel
Showing results for
Did you mean:
Helper I

## How to union two measures

Hi,

I have two measures.

1.sum of sales(%)

2.Goal(%)

I want to show four months of sales in a bar chart visual along with Goal bar .

Something like this  as below

four blue bars are sum of sales and green bar is goal.

I want to show the goal for current period

Please i need help as quick as

8 REPLIES 8
Super User IV

@Navaneetha , create a measure that only shows a goal for the current period and sales which does not show for the current period and but them on the clustered bar visual

Proud to be a Super User!

Super User III

HI @Navaneetha ,

See if this helps,

https://community.powerbi.com/t5/Desktop/Grand-Total-in-Bar-Chart/td-p/612631

Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Community Champion

I would create two charts and place them side by side with no borders. first chart with Bluedata and second one with green data considering you already have the below calculated values.

1.sum of sales(%)

2.Goal(%)

Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos, Press the thumbs up button!!👍

Regards,
Pranit

Microsoft

Hi @Navaneetha ,

I suggest you use clustered column chart. And you can change your Goal(%) measure to

``NEWGoal(%) = IF(MAX(Table[Column]) = "FY21Q2",[Goal(%)],0)``

And you visual will be like:

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,

Dedmon Dai

Helper I

It showing error message as below

"Dax comparison operations do not support comparing values of type number with value of type text consider using the value or format function to convert one of the values."

Helper I

We did like that but after we are facing issue to export the data.

Is it posibble to export  the data in one excel to see both sales and goals data?

Helper I

Microsoft

Hi @Navaneetha ,

What is the data type of your x-axis value? It must be  text in your sample screenshot.

Best Regards,

Dedmon Dai

Announcements

#### Power Platform Community Conference

Check out the on demand sessions that are available now!

#### Power Platform October Community Highlights

Check out the top community contributors across all of the communities

#### Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors