Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I am drawing a Line chart with x-axis as Date and Y-axis as Percentage and would like to draw a vertical line (date) where i hit first 0 for "Remaining" or "Percentage" [ ideally both are similar ]. In this context, i want to create a Measure to capture this date so that i can use while configuring using "x-axis constant line"
Question:
a. How to create a Measure to retrive first occurance of 0 in remaining ( want it to be generic so that i can use any other value later say: Remaining = 1 ). Btw, Remaining, Percentage are all Measures
b. Ignore all records with remaining =0 after first occurance ( in sense my table should have only one Remaining =0 and rest should be ignored)
c. Is there a way to include a sample row in this table ( if first row where Percentage =100 % is missing, can i statistically include it or should i work with data team to send it in all cases )
Thought of creating a table with all 0's and gather minimum date after applying the filters. But did not work
VAR _table = CALCULATETABLE(Table1, FILTER(Table1, Table1[M_Remaining] = 0 ))
Thanks for all the help or direction!
Updated the sample Data Link now and it should not ask for login. thanks for catching it!
a)
First Zero Date =
var a = summarize(ALLSELECTED(Data),Data[MaxDate],"pc",min(Data[Percentage]))
return minx(filter(a,[pc]=0),[MaxDate])
b)
Show = if(max(Data[MaxDate])<=[First Zero Date],1,0)
not sure what you mean by c) - Divide Remaining by Percentage should give you the full value?
link to sample data requires login
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |