Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi,
I'm new in DAX, and I'm having a problem in counting the number of days with a condition. I need a measure that will count the days passed from the slicer date where the GL OB is more than the Amort OB and will stop the count if there will be a date where the Amort OB is more than equal the GL OB. Please see the table below (The No. of days column is the result of the measure I needed):
Date | Amort OB | GL OB | NO OF DAYS |
Sep-19 | 10,000 | 12,000 | 0 |
Oct-19 | 8,000 | 8,000 | 0 |
Nov-19 | 6,000 | 8,000 | 31 |
Dec-19 | 4,000 | 8,000 | 61 |
Could not solve in one measure. Created a column and measure
First column: If amount GL OB is greater then Amort OB
Can this be solve without adding a column?
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
15 | |
7 | |
6 |