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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Multiplying Values By Existing Table for Allocation

I'm trying to back into how many dollars were allocated on eac of these perameteres. For example, I'd like to spit out a DAX measure that will take RA-207's $236,000, from another table [Table 1], and multiply it be each allocation percent for "Allocation Type" and each utility in [Table 2]. There are other allocation types, not just D in my [Table 2]. I'm not sure which DAX formula to perhaps use to accomplish this caclualtion?

 

The end result would be

$172,280K Common D

$63,270K Common D

 

Annotation 2021-04-21 150135.jpg

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

Did MFelix 's suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements to find it more quickly.

If these also not help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

Did MFelix 's suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements to find it more quickly.

If these also not help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
MFelix
Super User
Super User

HI @Anonymous ,

 

For this you need to use a measure that picks up the values however this depends on your model.

 

I have made a simple model with 3 tables:

Allocation

Allocation Values (the one with the totals per RA)

RA table (unique RA values)

 

Made the relationships has below:

MFelix_0-1619187485237.png

 

Then added the following measure:

Total alocated = 
VAR temp_table =
    ADDCOLUMNS (
        SUMMARIZE ( 'Allocations', RA[RA],  'Allocations'[Value] ),
        "@Allocation_Percentage", CALCULATE ( SELECTEDVALUE ( 'Allocation Values'[Total] )
    ))
RETURN
    SUMX (temp_table, Allocations[Value]  * [@Allocation_Percentage] )

MFelix_2-1619187904593.png

 

 

Only question I have is regarding the part where you refer that there are other type of allocations, you need to add another dimension table with the allocations and related with your model and then add it to the summarize.

 

Chekc PBIX file attach.

 


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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.