Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
akj2784
Post Partisan
Post Partisan

Need Data Modeling help

 

Hi All,

 

I have a scenario based question.

 

Fact 1

Measure Column A, Column B (Dimensional data point), FK_Dim1, FK_Dim2, Column M

 

Fact 2

Measure Column C, Column F(Dimensional Data point) , FK_Dim1, FK_Dim2

 

Dim 1

Column D (Category)

 

Dim 2

Column E

 

I want to create a detail report with the following

Column D, Column E, Column B, Column F

 

Now Column B should display data only for a particular category present in Column D (e.g. Headcount). So when my Category is Headcount , column B is applicable. 

And when Category is Attrition, Column F should display data and Column B should be null.

 

Any help in modeling this scenario would be appreciated.

 

Note: I have gone through this video but this dint help.

https://www.youtube.com/watch?v=RiHpkN0gfPM

 

Just to add, I want to avoid creating a Union query or Merging both the Fact as this is just a sample of my requirement. Ideally I need similar logic with 5-6 Facts. And each Fact has different set of columns.

 

 

Regards,

Akash

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Show some data and the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-sihou-msft
Microsoft Employee
Microsoft Employee

@akj2784

 

For your requirement, I think you can only create a calculated column in each Fact table with SWITCH() function to assign BLANK() based on Category column values. 

 

Regards,

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors