Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
I have two test tables:
Table: "Test Object"
Table: "Test Group"
These have a unidirectional relation on "Group code"
I have created a measure "Test measure":
This gives the correct result:
NB: I have a page filter to only show Group Code "G01".
But it goes wrong when I use an IF function:
I then get the following result. Apparently the relation seems to be ignored now:
NB: The result doesn't change when I use the "Group code" from any of the two tables.
It's probably a basic / dumb mistake, but right now I don't see it. What am I missing here?
NB: I've created a PBIX file that shows the problem:
https://www.dropbox.com/s/76ld1kv503ul6nm/DAX%20problem%20with%20IF.pbix?dl=0
Solved! Go to Solution.
Hi @Anonymous ,
Try to create measure like so:
Price category =
VAR lowestPrice =
MIN ( Object[Price] )
RETURN
IF ( lowestPrice <> BLANK (),
IF ( lowestPrice < 40, "Low end", "High end" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I've tried that. The result doesn't change if the Group code is coming from any of the two tables.
if group code coming from two table. Create the formula on master/dimension table(1 side) and use that in visual
Can you share a sample pbix after removing sensitive data.
Hi @Anonymous ,
Try to create measure like so:
Price category =
VAR lowestPrice =
MIN ( Object[Price] )
RETURN
IF ( lowestPrice <> BLANK (),
IF ( lowestPrice < 40, "Low end", "High end" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 44 | |
| 19 | |
| 19 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 34 | |
| 33 | |
| 31 |