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
Thanks!
Hi @Anonymous,
Can you please share some sample data and expected output for that sample data?
It's difficult to understand what is the value you want to have returned and the summarization based on the data provided.
Please see this post regarding How to Get Your Question Answered Quickly (courtesy of @Greg_Deckler) and How to provide sample data in the Power BI Forum (courtesy of @ImkeF).
Thank you
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português
Sorry for the need to scrub data, just have to do it for privacy issues.
I need to be able to return the Compliance Status column that coresponds to the last visit date.
In this example, I have a visit on 7/24 and 8/13 for store 67. I am trying to get the "Display Built on Previous Visit" response to return into a table.
We currently have the measure for that column written as:
LatestStatus =
CALCULATE(
LASTNONBLANK('View Responses' [Compliance Status], 0),
FILTER('View Responses','View Responses'[Visit Date] = [Latest Visit Date User]))
Latest Visit Date User is simply:
LASTDATE('View Responses'[Visit Date])
I have tried MAXA for the visit date, I've tried using it as an IF statement ahead of the CALCULATE function, and several other options, but it is always returning the value for the visit on 7/24.
The desired output is below. Basically I will have Store#, The latest Visit Date, and The Latest Status returned from that measure.
Hope this helps. Thanks!
HI @Anonymous,
Currently, you can't use filter/slicer(measure formulas are dynamic changes based on row contents) to create dynamic calculated columns/tables.
They are work on different data levels and calculated column/table not responsive or interaction with filter/slicer selections. (Calculate column/table are host on data model table, they are the parent level of the virtual tables that filter/slicer hosts; child-level not able to affect their parent)
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
Sorry for the additional questions do you have any cases where in the same day you have more than one visit with text? or the maximum visits per day is always 2 where one is blank?
If you have two visits on the same day what is the tie breaker how do you know that was the last status that you want to display?
Because looking at this simplified information if you place the visit date and the compliance status and filter out all that is blank you will get the expected result, the only thing that you would probably need is to make a filter measure if you only want to get the last visit.
I may be missing the point of your information.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck 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 |
---|---|
110 | |
95 | |
86 | |
78 | |
66 |
User | Count |
---|---|
157 | |
125 | |
116 | |
111 | |
95 |