Forum Discussion
joshua1990
Post Prodigy
5 years agoCount last Entry per Order
Hello! I have 2 tables: The first table (Sales Header) contains some basic information on order level. That means one row per order: Order-Nr Date Value 258 01.02.2021 50 938 13.12.2...
Anonymous
5 years agoNot applicable
try this
Column =
var maxValue =
CALCULATE (
MAX ( 'Table (2)'[steps] ),
ALLEXCEPT ( 'Table (2)', 'Table (2)'[order] )
)
return
if ('Table (2)'[steps]=maxValue , 1)
joshua1990
Post Prodigy
5 years agoAnonymous : Thanks, that works fine! What is, if a need a sub/ grand total? Then this measure will not work, right? I guess I need a countrows. How would you do that?
- Anonymous5 years agoNot applicable
@joshua1990 From the visualization pane, go to the FORMAT of visual, and from there, you can keep the google buttons ON for subtotal. Pls, look at the Screenshots I have added.
Pls approve my reply and let me know if you have any further queries!