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! Request now

Reply
PeterPowerBI
Frequent Visitor

Trouble Writing MDX Queries

Hi All,

I'm having trouble understanding how to write a mdx query and I'm not sure how to write it to construct the below excel example. Could I please some help in achieving the below result? I'm using SAP BW Application Server as the data source.

Desired Result:
Example:
(where basic finish date [20FINISHDATE] = 01.09.2022)

PeterPowerBI_2-1663335275593.png

 

Source I need to populate:

PeterPowerBI_1-1663335004032.png

 

PeterPowerBI_0-1663334636854.png 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PeterPowerBI ,

 

What's MDX? I learned that it seems to be a statement in SSAS, not in power bi.

 

For your question, what I can do is to give you some reference to the statement document ~ hope it will help you.

 

The Basic MDX Query (MDX) | Microsoft Learn

 

Best regards,

Community Support Team Selina zhu

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

3 REPLIES 3
Anonymous
Not applicable

Hi @PeterPowerBI ,

 

What's MDX? I learned that it seems to be a statement in SSAS, not in power bi.

 

For your question, what I can do is to give you some reference to the statement document ~ hope it will help you.

 

The Basic MDX Query (MDX) | Microsoft Learn

 

Best regards,

Community Support Team Selina zhu

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

Greg_Deckler
Community Champion
Community Champion

@PeterPowerBI So, if you use the Navigator and such you may not have to hand-write MDX. If you need to hand-write MDX you'll have to learn MDX:

Writing MDX Queries (oracle.com)



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...

Hi Greg,

Is it possible just to provide me an example of how you would write the above?

I would add more columns and logic, but just wanted to see a sample and work from there. I get a bit overwhelmed with a lot of reading.

Thanks,
Peter

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.