Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
We have customers that are provided with different statuses. There are different statuses if a customer was active or not. Over time we have all the changes of statuses.
Now comes the problem: we want to show in a list only the customers whose status has changed (to positive or to negative). In this list the customers should appear only once and not with all status changes.
Can you help me with this?
Hi @ChristophP ,
If there are some index or date column in your table? Or the status of customer will be over written by refreshed rather than add a new row to record the status.
If over written, It is impossible to do that.
if add rows. Adapt the following measure to your model.
Measure =
VAR _pre =
CALCULATE(
MAX( 'Table'[status] ),
ALL( 'Table' ),
PREVIOUSMONTH( 'Table'[date] )
)
VAR _cur =
MAX( 'Table'[status] )
RETURN
IF( _cur = _pre, BLANK(), 1 )
Put the measure in filter pane and set show items is 1.
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Customer List = CALCULATE (
VALUES ( Table1[CUstomer Name] ),
Table1[CUstomer Name] IN { "Positive", 'Negative' }
)
I don't have such a column yet, but I also want the customers to be displayed only once, with summed change over time.
So tell me about your data along with column name so we can work on it to get the expected result.
Hi @ChristophP
Do you have a list or column which contains status of customers positive or negative ?
if so then u can get it by using Distinct DAX function.
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.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |