Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
This is a very new experience to me and after a few attempts I am out of ideas on how to achieve this.
Essentially, I need to show the highest condition for the day, however our data is being captured hourly, so I need to group the timestamps by date. That first part I managed to do easily. The second bit is where I'm stuck.
Above is a screenshot of a scenario. Ignore the Manual and Current non compliant columns as the condition column already calculates the final values I need to summarise. So for this instance, the whole day should be flagged as 1, how can I make a new column that will look at the highest condition valueof the day and return it, this means the new column should only have the value 1 across all rows. Thanks in advance
Solved! Go to Solution.
Hi, considering that you would need a column, I created this sample dataset and created a conditional column:
Below is the column calculation:
Hi,
Write this calculated column formula
Highest condition value = calculate(max(Data[Condition]),filter(Data,Data[Date]=earlier(Data[Date])))
Hope this helps.
It didn't work, I'm getting the highest value possible in all rows, which is 2
Hi, considering that you would need a column, I created this sample dataset and created a conditional column:
Below is the column calculation:
It worked, I had to edit the formula to also filter by location. I got a follow up question, how can I aggregate that into one single value for count? Off your example, there would be a count for each condition. Though it counts only one instance. So there would be
0 = 1 day
1 = 1 day
2 = 1 day
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 |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |