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
Anonymous
Not applicable

edX lab 2 lesson 4 and 5

Hello. I am trying to learn how to use PowerBI through edX course.

However, I am running into some issues.

In particular, in lesson 4 of chapter 2, I am not able to replicate the results he gets.

When the instructor plots the sales revenue against the month number, he gets the following:powerBI_inst.png

While I get this result:

 PowerBI_me.png

 

Which is very different.
However I can't understand why this happens.

On a similar note, in lesson 5, when he calculates YTD revenue base on the Date column in the Date table, I get a different result.
Namely, the revenue and YTD revenue measure are the same.

1 ACCEPTED SOLUTION

hi, @Anonymous

Try to CALENDARAUTO Function to create a date table as below

8.JPG

https://msdn.microsoft.com/en-us/query-bi/dax/calendarauto-function-dax

 

Best Regards,

Lin

 

 

 

Community Support Team _ Lin
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-lili6-msft
Community Support
Community Support

HI, @Anonymous

It seems that you don't create the relationship between data table and date table, or the direction is single.

Please check it.

1.JPG

and for TOTALYTD is Time Intelligence Functions, it needs a date table

and create a formula like this YTD = TOTALYTD(SUM('Table'[Sales]), 'Date'[Date])

https://msdn.microsoft.com/en-us/query-bi/dax/time-intelligence-functions-dax

and then drag field date from date table into axis and measure into Value

2.JPG

3.JPG

 

Please Check the relationship between date table with data table

4.JPG

 

Best Regards,

Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi,

Thank you for your very useful answer.

It solved my issue.

I have one more question: Is there a quick way to generate a Date table that all the data intelligence functions can use when preparing graphs for report?

hi, @Anonymous

Try to CALENDARAUTO Function to create a date table as below

8.JPG

https://msdn.microsoft.com/en-us/query-bi/dax/calendarauto-function-dax

 

Best Regards,

Lin

 

 

 

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

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.