EDIT: I realize I wasn't explaining the problem well enough, and that is my own inexperience with data modeling. But I managed to accomplish what I intended using a measure funtion to calculate the number of yards that had certain comments,
Yardage w/ no comment = CALCULATE(SUM('Shade Data'[Passed Yardage]),'Shade Data'[Pass w/o comment]="x")
then a rolling 12 months measure based off of that.
I'm trying to get a rolling 12 month total yardage for each of the below columns. For example, how many yards passed w/o comment, which with just the data below should show 16,687.3 yds. I can get the rolling 12 months to work to calculate pass/failed yardage, but I can't seem to get a measure to work to only count the yardage with an X in that particular column. Or do I need to format my data differently to make this measure work?
Table: Shade Data
|Date||Pass w/o comment||Pass with comment||Pass with limit||Pass with extreme limit||Fail||Pass||Total Yardage||Failed Yardage||Passed Yardage|
I am assuming that your question has been resolved already.
I'm trying to get a rolling 12 month total yardage
Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.
The below visualizations are a sample of the year to date based off this data. The part I'm having trouble with is getting the rolling 12 month totals of the comment percentages as well as the yardage of each of the comments.
I was also hoping to get the yardage total for each one, so how many yards in the rolling 12 months were Pass with limit etc. And is there a way to do it with a measure? Or is a slicer the only way?
The way you formatted the data there shouldn't be any total for Passed Yardage if the result was Fail. Similarly there shouldn't be any result in Sum of Failed Yardage if the result is a Pass of any kind. But the reason it is formatted the way I posted it is because there isn't just one result. On some dates, we get total yardage that has some that passes and some that fails. And that pass can be with limit comments, and extreme limit comments in the same amount of yardage.
On some dates, we get total yardage that has some that passes and some that fails. And that pass can be with limit comments, and extreme limit comments in the same amount of yardage.
you will need to provide the rules of precedence. or alternative guidance on what should happen. Ideally you would show the expected result based on your sample data.
there shouldn't be any total for Passed Yardage if the result was Fail.
That statement is not supported by your sample data.
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.