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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Use constant value in measure

Hello folks,

 

I have a problem. I am going to try to explain as detailed as possible, but in case questions arise, please do not hesitate to ask.

 

I have got a visual which consists out of many measures. These measures calculate different collumns in different tables.

The values are dynamic by and I can filter them by different contexts.

I also need the totals. Those are supposed to be used as KPIs.

 

Screenshots below:

What it looks like at the momentWhat it looks like at the moment

 

In the visual it is supposed to show the total of all the lines (being filtered here). Right now it uses the previous total.

Example: 

[NAZ-SOLL] = [GLZ-STUNDEN] * [NAZ-TAGE]

 

Right now it calculates the sums. It is supposed to calculate the values on its own and THEN sum them up.

 

Can anyone help?

 

All the best,

c4ss10p314

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

Not sure I follow, but perhaps: Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

Take a look at ISINSCOPE as well.

 

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you very much! I've already solved it by creating the measure as a virtual table, but that would probably work as well

 

 

I solved it as you say. with the virtual table creating there my constant value. Thank you.

But if I use few values I have to create multiple tables, right?

Any more optimal way?

Anonymous
Not applicable

It's apparently fairly simple.

We used SUMMARIZE to create a virtual table.

 

amitchandak
Super User
Super User

@Anonymous ,

For multiplication, we should sum(A*B), if not then sum(A)* Sum(B) need a common context

[NAZ-SOLL] =sumx(summarize(Dim,Dim[Common],"_1", [GLZ-STUNDEN],"_2", [NAZ-TAGE])[_1]*[_2])

 

Also, refer how to use context: https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Not sure I follow, but perhaps: Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors