cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TianaFash
Advocate III
Advocate III

Power BI Report for Final Challenge

Hi All,

 

I am stuck with the Power BI report and unsure how to navigate the Dimdate, including connecting it to the Animal table and using the VAR X. I am also unable to filter the dates to connect them with the table.

 

I would appreciate any guidance.

 

@BCBuizer @Corry@AhmedSalih @Rebecca-MSFT 

38 REPLIES 38
Corry
Advocate V
Advocate V

Hi @TianaFash,

 

I found the Learning Path videos for Power BI really useful in configuring my tables and data for the Animal Shelter solution. Obviously, I had to adjust to suit my solution but it's a great starting point.

 

Videos 8. Create a date dimension for my report, 9. Update the data model for my report, and 11. Add measures to my report were instrumental to the process which made the data make sense.

 

I focused on the follow videos.

6. Connect to Students data

7. Connect to Loans data

8. Create a date dimension for my report

9. Update the data model for my report

11. Add measures to my report

12. Create visuals for my report

13. Add filters to my report

TianaFash
Advocate III
Advocate III

Thank you @Corry I have watched the videos particularly the one focused on creating the date dimension for the report which is where I am stuck. Hence, the reason for reaching out.

StineN
Advocate II
Advocate II

Hello @TianaFash!

 

I also struggled a lot with the date table. I tried a lot of different approaches, and it finally worked without me knowing exactly what did the trick. So I'm not sure if I'm able to help, but here's a list of the main things I did:

 

- I created a date table using the DAX function AddColums() and Calendar(), instead of the CalendarAuto(). This made it possible to specify the start and end date. I used the Date of Arrival in the Animal table as the minimum date, and the Date of Adoption as the maximum date. 

 

- Make sure that the table contains all of the dates from start to end that is in the Animals table 

 

- Make sure that you mark the table as a date table: Table Tools > Mark as date table > Choose Date as the column

 

- I then created a new date hierarchy with year and month, because the default one disappears when you mark the table as a date table. I use this one in the visuals.

 

- Change the data type of all the columns containing dates to Date, in the Animal table (and I also did it in all of the other tables to be sure). You must do this both in the Table view for the loaded data and in the Transform data view (edit query).

 

- Create a relationship between Date in the date table and Date of Arrival in the Animal table (or the one that you based the date table on)

 

- Refresh the data: Home > Refresh 

 

Hope this can be of some help!

@TianaFash 

 

Below is the code I used in DAX that does not have the CalenderAuto

dimDate = ADDCOLUMNS(
    CALENDAR(DATE(2021,01,01),DATE(2023,08,30)),
    "MonthID",Month([Date]),
    "Month",FORMAT([Date], "MMMM"),
    "Day", DAY([Date]),
    "DayName", FORMAT([Date], "dddd"),
    "Year", YEAR([Date]),
    "Today", TODAY(),
    // Adding a Fiscal Type of Date
    "FiscalYear", IF
    (
        MONTH([Date]) >= 9,
        YEAR([Date])+1,
        YEAR([Date])
    ),
    "FiscalMonthID", IF
    (
        MONTH([Date]) >= 9,
        Month([Date]) - 9,
        Month([Date]) + 3
    ),
    "Report Refresh", NOW()
)
 

@Corry - Thanks for the suggestion. Can you let us know which are the columns and table that needs to be imported in power bi report for our scenario. 

While trying to import data, for choice columns like shelter status, sex, etc the data is showing the values (1,2,3) rather than the label ( male or female, adopted or claimed for foster ). kindly provide your brief insight on this. We are at the final stage of the challenge.

@ZeeScience  and @StineN - I believe you guys have completed this as well. Your insight is also might appreciated.

Nickie_
Advocate I
Advocate I

@StineN and @Corry  I have tried all the solutions above and I am still stuck. 

What I am having issues with is the count of animal type , where once the relationship is added all the fields disappear. I have changed the data types and matched them in both tables. 

Could it be because of the data type?

Hi @Nickie_.

 

To get the total animals rescued by type, I am using a Measure (calculation).

Total Animals Rescued = CALCULATE([Total Animals], cr0f4_animals[Shelter Status] = "Adopted")

I then have this applied to a bar chat visual in the Y-axis and I have Animal Type from my Animal table in the X-axis.

 

Corry_0-1716459117908.png

Corry_1-1716459155618.png

 

@Poovarasan27 I am almost done with it, still having a little issues with the Date Dimension

Hi @Poovarasan27,

 

I used the Direct Query option for my Animal table, and I transformed the data to only include the following columns. I have only added the Animals table, I felt I didn't need the others for the requirements as the information is already in the Animal table.

 

Corry_0-1716463774601.png

 

I have just tested the import option for my Animal table, and I see 2 columns for sex, as an example.

 

Corry_1-1716464128258.png

 

You obviously want the sexname option so you can transform your data to no include the columns with numbers etc.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (1,266)