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

Hi @ZeeScience,

 

If it helps, this is the DAX formula I have used for my dimDate table. I have also selected 'Mark as date table' was the table is created.

 

dimDate = ADDCOLUMNS(
    CALENDARAUTO(),
    "MonthID", MONTH([Date]),
    "Month", FORMAT([Date], "MMM"),
    "DayNumber", DAY([Date]),
    "DayName", FORMAT([Date], "dddd"),
    "DayID", WEEKDAY([Date], 2),
    "Year", YEAR([Date]),
    "Today", TODAY(),
"Report Refresh",Now() //We'll use this to display the report refresh date
)

 

I then created a Many to One (N:1) relationship from the Animal table to the dimDate table.

'Date of Arrival' to 'Date'.

 

Corry_0-1716464686371.png

@Corry 

 

My Date disappears once I add a field into the columns field. I am unable to filter with the Date neither am I able to use the dates to see when animals arrived in their respective years. See attached screenshot

@Corry 

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

What does [Total Animals] represent 

Hi @ZeeScience,

 

Based on the image you supplied, you have no values added for that visual. Think of an excel spreadsheet, you have the Rows and Columns defined but not values in the cells for those rows and columns.

 

Here is an example with values added.

Corry_0-1716466435425.png

 

Also, you may want to check how you are defining your rows, I see you have FiscalYear Hierarchy. I believe the requirements are by months so you may not need the Fiscal Year part.

@ZeeScience, this was given to me as the default and only option when creating the formula. I would say it represents what it says. A total of my animals table. So, in the context of this formula. It is creating a calculation that will give me a total of all shelter status's that = "Adopted". At least this is how I am interpreting it; I could be wrong. I know nothing about DAX language.

@Corry 

 

Even when I added values, my date still disappears. I do not understand what is going on again.

@Corry 

Also, how did you do the calculation for getting animals that were fostered because I was thinking Animas with the following status: Claimed for Adoption, Ready for Adoption and In Foster Home, are all animals that have been fostered. How do you think I can go about getting the amount of animals that were fostered

Hi,

 

I have same problem. The date information of dimDate table can not connect with the Animal table. 

Grkm_A_0-1716475954598.png

 

When ı use Date of Arrival on Rows I can get the date information. In my opinion the relationship is not working but set up f relationship seems correct to me. I shared the set up below too. 

 

Grkm_A_1-1716476040658.png

Relationship between Animal and Date tables:

Grkm_A_2-1716476166139.png

 

@Corry - Your solution worked for me. I have created 3 measure columns for total animal, total animals rescued , total animals fostered.

 

But i am facing trouble in creating a measure column for last month or 3 months of for above column. In the video, they are using a function ' sameperiod this year '. 

kindly help me out ?

What to do after the refresh step? 

 

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