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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Creating table out of 1 value through DAX

Hello everyone!
I have stucked with the dax formulas. Here is the situation:
1. We have only 1 variable value that is used to create all other columns, and two columns to interact with.

2. That one variable sets as a What IF parameter

3. I tried to used SUM instead of SUMX but got wrong results in total, which is not acceptable 

4. I tried to create "Virtual Table" out of table of clean values to count others (New Table button (SUMMURIZECOLUMNS...)), didnt work - got all values which comes from measures equal 0

Аннотация 2019-03-28 101011.png

Yellow marked columns are constant they are not affected by "Value1" (on top)

and the last column - "Value1_for_reciept = SUMX('Table1';'Table1'[Sum Value] / 'Table1'[Reciept value])" i was waiting 23,49*2,35 which is equal to 10 but i get "Average_values" somehow

Here is the example file

https://onedrive.live.com/embed?cid=32B05E6328809814&resid=32B05E6328809814%211741&authkey=AHdHMH8ih...

Thanks in advance for your answers.

 

EDIT:

Ok. Maybe it will help. I have some data
Снимок.PNG

I need this data to manipulate with what if parameter in dax, called "Value"

Снимок2.PNG

I need this "Value" first be multiplied by share_Value1 here it is "Sum Value"

Next I need two columns that containe "Sum Value" divided by average_Value1 and they are "Receipt Value" and "Offer Value"

Then I need to multiply Sum_Value by Reciept_Value to get "Value1_for_receipt" and here is all going wrong.

Same story with another Reciept_Value*average_price it also returns not what I expect to see

7 REPLIES 7
Anonymous
Not applicable

Ok. Maybe it will help. I have some data
Снимок.PNG

I need this data to manipulate with what if parameter in dax, called "Value"

Снимок2.PNG

I need this "Value" first be multiplied by share_Value1 here it is "Sum Value"

Next I need two columns that containe "Sum Value" divided by average_Value1 and they are "Receipt Value" and "Offer Value"

Then I need to multiply Sum_Value by Reciept_Value to get "Value1_for_receipt" and here is all going wrong.

Same story with another Reciept_Value*average_price it also returns not what I expect to see

Greg_Deckler
Community Champion
Community Champion

Where are you getting "Average values"? So the 10 in the first row is correct or not correct? Are you referencing your Total line? Please clarify.



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

Average values - these are constant they come from excel table, total line of average valueas is also correct, total line would be incorrect to my opinion if i use SUM instead of SUMX in table

OK, let me try a different track, what do you expect the results should be for the data provided? If not 10, then what?

 



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

Ok. Maybe it will help. I have some data
Снимок.PNG

I need this data to manipulate with what if parameter in dax, called "Value"

Снимок2.PNG

I need this "Value" first be multiplied by share_Value1 here it is "Sum Value"

Next I need two columns that containe "Sum Value" divided by average_Value1 and they are "Receipt Value" and "Offer Value"

Then I need to multiply Sum_Value by Reciept_Value to get "Value1_for_receipt" and here is all going wrong.

Same story with another Reciept_Value*average_price it also returns not what I expect to see

Anonymous
Not applicable

Ok. Maybe it will help. I have some data
Снимок.PNG

I need this data to manipulate with what if parameter in dax, called "Value"

Снимок2.PNG

I need this "Value" first be multiplied by share_Value1 here it is "Sum Value"

Next I need two columns that containe "Sum Value" divided by average_Value1 and they are "Receipt Value" and "Offer Value"

Then I need to multiply Sum_Value by Reciept_Value to get "Value1_for_receipt" and here is all going wrong.

Same story with another Reciept_Value*average_price it also returns not what I expect to see

Anonymous
Not applicable

Greg, in column "Average values" evrything is correct, errors happens when I use the SUMX measure in next measures, they are kind of nested

>> "Value1_for_reciept = SUMX('Table1';'Table1'[Sum Value] / 'Table1'[Reciept value])" i was waiting 23,49*2,35 which is equal to 10 but i get "Average_values" somehow

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.