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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Analitika
Post Prodigy
Post Prodigy

Move values from columns to row

I have Table1

I need lookup values from DokNr which is equal to ApNr and return sum from DebSum to CredSum

Expected result:

 

 

Analitika_0-1597304805386.png

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Analitika ,

 

You may create measure like DAX below.

 

CredSum= CALCULATE(Table1[DebSum],FILTER(ALLSELECTED(Table1), Table1[DokN] =MAX(Table1[ApNr])))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @Analitika ,

 

You may create measure like DAX below.

 

CredSum= CALCULATE(Table1[DebSum],FILTER(ALLSELECTED(Table1), Table1[DokN] =MAX(Table1[ApNr])))

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@Analitika , Try a new column

sumx(filter(table, [AprNo] = earlier([DocNo])),earlier([debSum]))

 

or


sumx(filter(table, [AprNo] = earlier([DocNo])),([debSum]))

debSum is a measure not column

@Analitika ,Can you share sample data and sample output in table format?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.