Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi all,
I have a table, with two rows displaying the Member's names (which is blurred out) and their Internal or Customer time. The data model consists of the Members' table (The Members' names come from this table) and a fact table called V_EIS_Comined... (There is a column here called InternalorCustomer which categorizes each row as either Internal or Customer ).
I have Four measures:
Billed Hours =
Targeted Hours =
Diff Hours =
Solved! Go to Solution.
@darko861 , Try sum like
Targeted Hours =
Sumx(Summarize(v_EIS_Combined_Employee_Company_Time2,v_EIS_Combined_Employee_Company_Time2[InternalorCustomer],v_EIS_Combined_Employee_Company_Time2[Operations]),
SWITCH(TRUE(),SELECTEDVALUE(v_EIS_Combined_Employee_Company_Time2[InternalorCustomer]) = "Customer Time",SUM(Budgeted_Hours[Value]),BLANK()) )
@darko861 , Try sum like
Targeted Hours =
Sumx(Summarize(v_EIS_Combined_Employee_Company_Time2,v_EIS_Combined_Employee_Company_Time2[InternalorCustomer],v_EIS_Combined_Employee_Company_Time2[Operations]),
SWITCH(TRUE(),SELECTEDVALUE(v_EIS_Combined_Employee_Company_Time2[InternalorCustomer]) = "Customer Time",SUM(Budgeted_Hours[Value]),BLANK()) )
Hi Amit, It still gives the same output as the above print screen. But In your Dax you have referenced,v_EIS_Combined_Employee_Company_Time2[Operations], The members (Operations) come from another table called V_rpt_Member and the InternalorCustomer column comes from a different table called v_EIS_Combined_Employee_Company_Time2. It's a 1-to-many relationship. Still, I cannot manage to display the values from the second-level Customer Time (InternalorCustomer) to first-level Operations (Members), do you have any more suggestions?
I tweaked the code from Amit and broke it up into more measures so I could branch off it.
Now it works:
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
96 | |
91 | |
82 | |
69 |
User | Count |
---|---|
159 | |
125 | |
116 | |
111 | |
95 |