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


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!:
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.