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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-mengzhu-msft
Community Support
Community Support

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
v-mengzhu-msft
Community Support
Community Support

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
Super User
Super User

@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)


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.