March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a problem getting the right formula in my report. I only have two tables, the activity table then just a standard date table to slice time frames.
ActivityTable: DateTable
Day Month&Year etc.
Amount
Flag
The records are a list of days, an amount for that day, and a Y or N to indicate if it exceeded a threshhold. Looks like this
example:
1-Jan | 250 | n |
2-Jan | 0 | n |
3-Jan | 0 | n |
4-Jan
| 750 | y |
The end result I am trying to build is to get to by month, what percentage of days exceed the threshold
so like this: And would need it to do this for each month as dates are added. Basically count how many days within a month/year had activity, then calculate the percentage of those days that had "Y's" flag. So in this example, January had for activity dates and the threshhold was 500, and only 1 of the 4 exceeded that (Y)
Jan-23 | 25% |
I thought I could count # rows by filtering the table for Y but when I do that, it is not by month. It it just the whole table count of Ys.
Does anyone know how to do this? Thanks very much. New to dax and it is very confusing switching from tableau 🙂
Solved! Go to Solution.
Hi,
Here is one way to do this:
Dax:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
Hi,
Here is one way to do this:
Dax:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/
Proud to be a Super User!
You are amazing! Thanks so much - this worked perfectly!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |