Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I am sharing my Pbix file here.
I am trying to work with financial statement, and trying to allocate values based on "Financial" (category).
So,
If it is "Census - Med A", it will show 1000.
If it is "Census - Med HMO", it will show 2000.
I have Two (type of) measures:
The issue is that, it sums up everything (1000+2000+...6000) = 21K, instead of dividing into different line item (on the visual):
This is expected output:
I was following this YouTube channel, but I am not sure what I am missing.
Thanks.
Solved! Go to Solution.
@JustinDoh1 , Based on what I got, Change the measure like
Financial Value =
Sumx( Values('Structure'[Line Item ID]), CALCULATE( SWITCH(
SELECTEDVALUE('Structure'[Line Item ID]),
"Census - Med A", [Census - Med A],
"Census - Med HMO", [Census - Med HMO]
)))
I realized that measure for each calculation was wrong:
I changed to this:
It is now working.
@JustinDoh1 , Based on what I got, Change the measure like
Financial Value =
Sumx( Values('Structure'[Line Item ID]), CALCULATE( SWITCH(
SELECTEDVALUE('Structure'[Line Item ID]),
"Census - Med A", [Census - Med A],
"Census - Med HMO", [Census - Med HMO]
)))
Thanks for help.
I modified the measure like you mentioned, but I am still getting 21000.
What am I missing?
Thanks.
I realized that measure for each calculation was wrong:
I changed to this:
It is now working.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
148 | |
116 | |
104 | |
89 | |
65 |