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
Asa94
Helper I
Helper I

Matrix Visualization of a Calculated Column versus a Measure

Hi all,

 

I hope you are well,

 

I am trying to do a matrix visualization based of values that are in a calculated column. The values in the calculated column are correct. However, when I use the matrix, it sums the values as shown below:

 

Asa94_0-1626851329836.png

Just some context:

 

1. I need to show the average number of orders per dealer code, per day, per month:

- Dealer code is shown

- Per day is Monday to Friday (or Weeknum)

- Per month is Month (or Monthnum)

2. I used the following DAX to calculate the average:

 

Asa94_1-1626851611317.png

 

Is there a way I can use a Measure rather than the calculated column? Or another way to go around this. Any help will be appreciated 🙂

 

Kind Regards,

Asa

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Asa94 , Try a measure like

 

calculate(average(inv[order]), filter(allselected(inv), inv[dealercode] =max( inv[dealercode]) && inv[monthnum] = max(inv[monthnum]) && inv[weeknum] = max(inv[weeknum])))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Asa94 , Try a measure like

 

calculate(average(inv[order]), filter(allselected(inv), inv[dealercode] =max( inv[dealercode]) && inv[monthnum] = max(inv[monthnum]) && inv[weeknum] = max(inv[weeknum])))

@amitchandak , thank you so much! 🙂

 

That measure gave me the same results as the calculated measure. Appreciate it so much

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.