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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Help in Table and Measures

Greetings everyone,

 

I have a table with the sales amount planned and realized by several products and customers.

 

Table Example 

 

I was able to create a table where I show the sum of these values in two columns (OBJ and REALIZADO). And I also created a column where I show the variation between these values in %.

 

PBI Example 

 

My doubts are:

 

1) How to not show the rows where the following conditions occur

  • OBJ = 0 and REALIZADO = 0
  • OBJ = 0 and REALIZADO = BLANK
  • OBJ = BLANK and REALIZADO = 0

2) When OBJ = 0 or BLANK, but REALIZADO is neither, COBERTURA is 0%. How to get 0% when REALIZADO = 0 or BLANK, but OBJ is neither.

 

3) How could I create a table of Customers, showing the average COBERTURA?

In Março, for Customer 1, I had sales of two products, 50048 and 50049, with COBERTURA of 0% and 38.5%.

In this new table, I would like to show that the assertiveness was (38.5 + 0.0) / 2 = 19.25%

Best Regards,

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @Anonymous ,

 

Create the following measure:

Filter = if(([OBJ] = 0 && [REALIZADO] = 0) ||([OBJ] = BLANK() && [REALIZADO] = 0) || ([OBJ] = 0 && [REALIZADO] = BLANK()), BLANK(), 1)

Now add this measure to your table and filter all values that are different from blank.

 

For the average create the following measure:

Av Cobertura = AVERAGEX(SUMMARIZE(Plan2, Plan2[Cliente Matriz], Plan2[Produto],"CoberturaValue", [COBERTURA]), [CoberturaValue])

 

Result below and in attach PBIX:

MFelix_0-1617208515628.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

1 REPLY 1
MFelix
Super User
Super User

Hi @Anonymous ,

 

Create the following measure:

Filter = if(([OBJ] = 0 && [REALIZADO] = 0) ||([OBJ] = BLANK() && [REALIZADO] = 0) || ([OBJ] = 0 && [REALIZADO] = BLANK()), BLANK(), 1)

Now add this measure to your table and filter all values that are different from blank.

 

For the average create the following measure:

Av Cobertura = AVERAGEX(SUMMARIZE(Plan2, Plan2[Cliente Matriz], Plan2[Produto],"CoberturaValue", [COBERTURA]), [CoberturaValue])

 

Result below and in attach PBIX:

MFelix_0-1617208515628.png

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.