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.
Hello,
Below is what I am trying to accomplish.
I have the pbix for the example below, but not sure how to post it.
Thanks in advance,
I tried your suggestion, thank you!! It is close but doesn't work when the date selected is changed to include the older effective/expiration date range. The older date range cost is included in the first screen print, but see the second screen print and what happens when I add Measure 2 to the grid.
Before adding Measure 2 to the grid:
After adding Measure 2 to the grid:
Hi, I did have the visual filter set to 1 for Measure 2, but unfortunately it still doesn't work when the as of date is changed from 2/1/2022 to 1/12/2022. The cost for cost code 1234 should change from $250 to $150 instead.
Hi @curtismob
Please upload pbix file in google drive, make any one can access it and share the link here
Hi @curtismob ,
Try to create a measure like below and apply it to visual level filter:
Measure 2 =
var rank_ =
RANKX (
ALLEXCEPT( Cost,Cost[CostCode] ),
[Measure Cost AsOf]
)
var min_vendor = CALCULATE(MIN(Cost[VendorNo]),FILTER(ALLSELECTED(Cost),Cost[CostCode]=MAX(Cost[CostCode])))
return IF(rank_=1&&MAX(Cost[VendorNo])=min_vendor,1,0)
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @V-lianl-msft,
Thank you for the response, I'm not sure why I wasn't notified you reponded. I will give this a try and update this thread.
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 |
---|---|
110 | |
97 | |
78 | |
64 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |