Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Colleagues!
I have a report that is downloaded in every working day.
It brings a list of materials and records of alerts (like risks of shortages, MRP exceptions).
The question asked every day is: "what are the items that had new messages or increases from the last update to today?"
What we do is a pivot table and manually identify these (as per example above).
How can I make this identification in Power BI?
Solved! Go to Solution.
Try this measure:
Measure =
VAR currentDate_ =
SELECTEDVALUE ( Table1[Data Report] )
VAR prevDate_ =
CALCULATE ( MAX ( Table1[Data Report] ), Table1[Data Report] < currentDate_ )
VAR currentVal_ =
COUNT ( Table1[Data Report] )
VAR prevVal_ =
CALCULATE ( COUNT ( Table1[Data Report] ), Table1[Data Report] = prevDate_ )
VAR diff_ = currenVal_ - prevVal_
RETURN
IF ( diff_ > 0, diff_ )
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Try this measure:
Measure =
VAR currentDate_ =
SELECTEDVALUE ( Table1[Data Report] )
VAR prevDate_ =
CALCULATE ( MAX ( Table1[Data Report] ), Table1[Data Report] < currentDate_ )
VAR currentVal_ =
COUNT ( Table1[Data Report] )
VAR prevVal_ =
CALCULATE ( COUNT ( Table1[Data Report] ), Table1[Data Report] = prevDate_ )
VAR diff_ = currenVal_ - prevVal_
RETURN
IF ( diff_ > 0, diff_ )
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Something like this:
The pivot table is just a Count of lines:
Hi @uie07923
Can you show a sample of the underlying table that you use for the pivot? and an example of the calculation based on that data?
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
89 | |
68 | |
61 |
User | Count |
---|---|
150 | |
120 | |
100 | |
87 | |
68 |