• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

2 Fact Tables, different granularity, how to allow viewing details of 1 fact not in 2nd fact

GraH - Guido

Well-Known Member
Hi all,

I'm not so active any-more on the forum since a few months because I'm very busy with Excel at work. Can't be motivated to do even more Excel in my free time. Seems I've missed out on some fun...

To the point now. I'm busy working on a data model that combines multiple tables; both dimension as fact tables to allow integrated project reporting. In my current model, as attached, I'm able to view budget and actuals side by side on "project level". Now users are asking to allow viewing the budget and actuals, but show the task level. On that granularity we do not have budget. Neither do I have a dimension table with tasks.

When I simply add the task level in the pivot, I get a Cartesian result as expected. I made an alternative model in which all the fact tables contain the task level. So if we have for project A say 3 tasks in the actuals, then during my ETL process I split the budget in 3 lines, one for each task and divide the given budget amount by 3 as well. The downside here: users get the impression there is a budget on task level. That's never the case.

Would anyone have some idea on how to do this? How do I need to update my model? Or would you have the solution to write a correct DAX that allows viewing the actuals on task level, but only shows budget on project level, even if the "dummy" tasks are present in the budget fact. (This alternative model is not in the attachment).

Looking forward to your guidance.
G.
 

Attachments

  • Fake Data Model_Chandoo.xlsx
    469.1 KB · Views: 3
Making the time to reflect on the issue at hand and explaining it to others works inspiring....
I actually continued on the road where I force the fact tables to show the same granularity. Then adding a dimension table with the tasks per project so I can drag them inside the pivot. Here I can use ISFILTERED() function as I discovered.
Probably not the best way, but so far it is the best I can do.
Cheers to all. Enjoy the weekend.
G.
 
Back
Top