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
Hi All,
I want to have grand total of Max values
Here is how data set looks like
Data set sample
sometimes i have 2 dates, sometimes 3 dates, but target needs to be same, hence Iam struggling to use "x" functions, like sumx and maxx.
Solved! Go to Solution.
dont know if this is bloated, i kinda got it working with this
i forgot about summarise earlier
dont know if this is bloated, i kinda got it working with this
i forgot about summarise earlier
@luisClive Thanks,
I believe you have many fields with different values on each record, in this case, we have calculated by not considering the other fields except the required fields like 'date' & 'Target Hours'
SUMX (
SUMMARIZE ( Maxhours, Maxhours[Date], "Hours", MAX ( Maxhours[Target hours] ) ),
[Hours]
)
Hope this helps,
MS
@msksenthil tnks let me try Summarize function, let me check it out
@FrankAT thanks, i havent used inscope before, i check this too
Hi @Anonymous
you can do it like this:
Sum of Distinct Target Hours =
VAR _Sum = SUM('Table'[Target Hours])
VAR _Table = DISTINCT('Table'[Target Hours])
RETURN
IF(ISINSCOPE('Table'[Date]),_Sum, SUMX(_Table,'Table'[Target Hours]))
With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)
@Anonymous can you try the below
tnks
I have tried this before, since all values are distinct, just that some data is missing everyday and i want to put max regardless
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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |