Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am puzzled with my incorrect data model and any help is really appreciated. In the screenshot below, PBI_XZ_Case_Time_Session is my fact table and PBI_XZ_Case_Fiserv is my dimentional table whose User_ID has 1:* relationship with UserID in fact table. Both User_ID and UserID are whole number integers.
Below is my target table visual with all columns from fact table. Everything is good so far.
My goal is to add Assignee in dimentional table. To show the issue here, UserID in dimentional table is added. As you can see below, one row in fact table matches all rows in dimentional table. Looks like my data model doesn't work at all.
I tried to follow the troubleshooting steps mentioned here: https://learn.microsoft.com/en-us/power-bi/guidance/relationships-troubleshoot, but I didn't see any obvious issue. Any suggestion for troubleshooting?
Thanks.
Solved! Go to Solution.
Hi,
Does this measure work
=SUMX(Calendar,[Session shours])
Sorry, I made a mistake to say SUMX function worked. I don't want to cause any confusion here. SUMX function has the same issue with SUM function. My workaround is to define 2 different measures with and without IF function and use them accordingly.
Actually, "Session Hours" is a measure as below.
Thanks.
Hi,
Does this measure work
=SUMX(Calendar,[Session shours])
Yes, the following measure with SUMX function works in both table visual and area chart visual:
Thanks a lot.
You are welcome.
Can you try this?
Session Hours =
VAR __HOURS = SUM( 'PBI_XZ_Case_Time_Session'[Session Seconds] ) / 3600
RETURN IF(ISBLANK(__HOURS) || __HOURS <= 0, 0, __HOURS)
or
Session Hours =
RETURN IF(
DIVIDE( SUM( 'PBI_XZ_Case_Time_Session'[Session Seconds] ), 3600, 0) > 0
, DIVIDE( SUM( 'PBI_XZ_Case_Time_Session'[Session Seconds] ), 3600, 0)
, 0
)
I tried both but none worked. As I said, the root cause is the IF statement. I also tried SWITCH statement and found it has the same issue.
I guess we may have to use SUMX in place of SUM.
Which is posted by another user below.
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |