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
Anonymous
Not applicable

Static Measure value which doesn't change based on the selection of other widget

Hello All,

I am showing data on Line and Stack column chart. I would like to have my Line static regardless of the filters changed on the report page. I am attaching sample data for understanding.

Transaction Details 
   
Store IDTrx IdWeekday
952501Monday
953502Tuesday
954503Wednesday
955504Thursday
952505Friday
953506Saturday
954507Sunday
955508Monday
952509Tuesday
953510Wednesday
954511Thursday
Sales Master 
   
 Store IDSECount
 95250
 95320
 95417
 95545

 

Data on the Widget   
Store IdTotal SalesSE CountAverage per Salesexec
9523500.06 
9533200.15 
9543170.18 
9552450.04 

 

Measure Formula

Average per Sales exec = DIVIDE( COUNTA('Transaction Details'[Trx_ID]),CALCULATE(Max(SalesMaster[SECount]))


Widget on the Report


Capture.PNG

 

 

 

 

 

 

 

 

I want the Black Line viz my Measure Average per Sales Exec to be static. It gets changed if I changed my store selection from the filter. Basically, I want to compare the Global average of sales executives against individual stores but based on the weekday. I am getting the data correct on default selection of all stores but as soon as I select selected store the Blackline also changes. 

Any help from the community will be helpful.

Thanks,
J

2 REPLIES 2
Nathaniel_C
Super User
Super User

Average per Sales exec = DIVIDE( COUNTA('Transaction Details'[Trx_ID]),CALCULATE(Max(SalesMaster[SECount]),ALL(SalesMaster))

Hi @Anonymous ,

Try ALL()
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel





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

Proud to be a Super User!




Anonymous
Not applicable

Hi @Nathaniel_C 

Thanks for your help. I have tried using ALL function and it didn't work. Let me know if you think of any other option.

Regards,
J


@Nathaniel_C wrote:
Average per Sales exec = DIVIDE( COUNTA('Transaction Details'[Trx_ID]),CALCULATE(Max(SalesMaster[SECount]),ALL(SalesMaster))

Hi @Anonymous ,

Try ALL()
Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel


 

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.