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
Good day!
I have this kind of data
And I have this kind on Report
I need to show on Current Users Card values from table - relatively to max date chosen on date slicer. Values on the table are snapshots so I don't need to summarize it only to show.
I suppose that I need to create measure by FILTER data but I`m a little bit confused which dax formula to use.
Thanks a lot!
Solved! Go to Solution.
Hi @kirkademidov,
with your PBIX it's OK.
You need just one more measure, like this:
Last_Quantity = AVERAGEX( CALCULATETABLE( TOPN(1;'stg StgFactUsers';'stg StgFactUsers'[PkDateKey];DESC) );'stg StgFactUsers'[Quantity] )//AVG
And I changed a little your PBIX, so you can look on all my changes HERE:
Best regs
Hi @kirkademidov,
Can you share a dummy sample please? I can't see any connections between the data and the visualizations. You measure could be like this:
No UID =
CALCULATE (
MAX ( 'table'[uid] ),
FILTER ( ALL ( 'datetable' ), 'datetable'[date] = MAX ( 'datetable'[date] ) )
)Best Regards,
Dale
try this measure, to calculate max date value:
Max_Date_Value =
MAXX(
KEEPFILTERS(VALUES('Dates'[PkDateKey]));
CALCULATE(MAX('Dates'[PkDateKey]))
)I suggest, htat you use "PkDateKey" for your slicer. For better result you can send a PBIX file with example data. It will be IMHO easier.
Best regs
McCow and v-jiascu-msft, thanks for you answer!
I didnt find the way to attache file - you can find it here Dummy pbix - I`ve wrote explanation inside
Hi @kirkademidov,
with your PBIX it's OK.
You need just one more measure, like this:
Last_Quantity = AVERAGEX( CALCULATETABLE( TOPN(1;'stg StgFactUsers';'stg StgFactUsers'[PkDateKey];DESC) );'stg StgFactUsers'[Quantity] )//AVG
And I changed a little your PBIX, so you can look on all my changes HERE:
Best regs
Thanks a lot!
This is exactly that I need!
With pleasure. Enjoy!
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 |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 65 | |
| 39 | |
| 33 | |
| 23 |