cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MiKeZZa Member
Member

Use outcome of measure on axis

Hi all,

 

I have a Power BI table like this:

 

ProdID             Value A             Value B        Outcome
1                      10                      20                1
2                      1                        20                0
3                      0                        10                2

4                      10                      20                1

 

So what you see is the result of many records that lead to Value A and Value B, both are measures that sum underlying records. Outcome is also a DAX query that returns 0, 1 or 2, based on dividing Value A on Value B.

 

Now I want to have a graph or table that says:

 

Outcome            Count of occurence

0                         1

1                         2

2                         1

 

But I can't count the outcome of a measure as I see now. Is there a trick for this?

1 ACCEPTED SOLUTION

Accepted Solutions
v-ljerr-msft Super Contributor
Super Contributor

Re: Use outcome of measure on axis

Hi @MiKeZZa,

 

If I understand you correctly, an alternative solution could be firstly creating a summarize table with ProdID column and the measures.

 

Then you should be able to show the Outcome and count of Outcome from the new created table on a Table visual to get the expected result in your scenario.

 

The formula below is for your reference. Smiley Happy

Table =SUMMARIZE ( 'Table1', 'Table1'[ProdID], "Outcome", [Outcome] )

 

Regards

View solution in original post

2 REPLIES 2
v-ljerr-msft Super Contributor
Super Contributor

Re: Use outcome of measure on axis

Hi @MiKeZZa,

 

If I understand you correctly, an alternative solution could be firstly creating a summarize table with ProdID column and the measures.

 

Then you should be able to show the Outcome and count of Outcome from the new created table on a Table visual to get the expected result in your scenario.

 

The formula below is for your reference. Smiley Happy

Table =SUMMARIZE ( 'Table1', 'Table1'[ProdID], "Outcome", [Outcome] )

 

Regards

View solution in original post

MiKeZZa Member
Member

Re: Use outcome of measure on axis

Yeah! That works great. Awesome. Thank you very much @v-ljerr-msft!

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 342 members 3,212 guests
Please welcome our newest community members: