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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
alfredorhz
Helper I
Helper I

Help with a row values

Hi Power Bi, Community, I hope everyone doing well
I need some help to get a row values and divide a single colum value for a constant value with this example, always working with a previous month( Year_Month), Could you please help me?
for exmaple 
Colum = Cycle 

ROW SEP =  for echa colum value in the row ("Jan", "Feb"....."Nov","Dec") / constant value

alfredorhz_0-1666976657278.png

 

3 ACCEPTED SOLUTIONS

Hi, @alfredorhz 
I believe I did precisely what you asked for.
Let's say constant value is 11.5
So I divided each month by value in the month in cycle row by 11.5.
If the value is 0, it's gonna be 0, tha's why it doesn'T show.
Please check again or give me sample data with exact result so I can match it precisely.

 

View solution in original post

@alfredorhz 
I feel like we're running in circle, just unpivot your months in Power Query as in this file.

 

View solution in original post

10 REPLIES 10
alfredorhz
Helper I
Helper I

Hi @vojtechsima 

Thank you for your help, your answer help me with another part of this table, but may be I don´t explaint in a correct form,  I hope this helps to understand what I looking for.

I need to divide for a constant each value in a cycle row for example:


Clycle Sept, fon each month colum value divide for a constant
Cycle Sept Row= Jan value = (2/11.5), Feb(12/11.5)-..... Dec(5/11.5)
Cycle Oct Row =Jan value = (2/11.5), Feb(12/11.5)-..... Dec(7/11.5)
....

...

 

alfredorhz_0-1667230604007.png

 

Hi, @alfredorhz 
I believe I did precisely what you asked for.
Let's say constant value is 11.5
So I divided each month by value in the month in cycle row by 11.5.
If the value is 0, it's gonna be 0, tha's why it doesn'T show.
Please check again or give me sample data with exact result so I can match it precisely.

 

Hi, @vojtechsima 

Yes, you are all right, I put the constant value here.... 
Constant Value for Month = CALCULATE( [Value Sum], ALLSELECTED(Cycle[Date]) )

  thank you so much

@alfredorhz 
Glad to help.

 

Hi @vojtechsima 

Can I Consult something more?
Your cycle data table is in this form

alfredorhz_0-1667255532408.png

 

But my table has in that form, Cycle column has months, and every column in my table is a month too, Do you have any clue how I can do the same calculation?

alfredorhz_1-1667255709530.png

I appreciate your words

 




Hi, @alfredorhz 
I am not much wiser from the reply, could you please attach your file (obviously with public data).
Or just create mockup file so I have the needed strange with random data.
Post in for example on Google Drive or OneDrive and send me link here please.

 

Hi @vojtechsima 

Thank you
here is the example file
Sample_File_With_data table.pbix 

@alfredorhz 
I feel like we're running in circle, just unpivot your months in Power Query as in this file.

 

Thank you @vojtechsima , you rocks

vojtechsima
Memorable Member
Memorable Member

Hi, @alfredorhz ,
 you can try this, three measures, but I am not sure if I can get what you want. Here's my pbix file.

Value Sum = SUM(Cycle[Value])

Constant Value for Month = 
CALCULATE(
    [Value Sum],
    ALLSELECTED(Cycle[Date])
)


Division = DIVIDE([Value Sum], [Constant Value for Month])



 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.