Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Dear,
I have a question.
I have two tables with excel connected by relations. Based on them, I created the table below in my report. The table contains all the information I need. Columns: Data, Index, Ba, in / out, Page number, material come from table 1. Column: Sh comes from table 2.
The report includes filters for: date, site number, material, and Sh. I'm having trouble creating a measure that will count the values of in from the last row until it encounters the value of out. Out means the end of counting lines. Here, for my photo, the measure result should be 7.
Can it be solved with one measure?
Thank you in advance for your help.
@ewelinag17 Can you explain where the 7 is coming from? I can't figure out the logic to get 7. Is it the lines that are "in" and less than the Indeks of the "out"? If so, it should be something like:
Measure =
VAR __Indeks = MAXX(FILTER('Table',[in/out]="out"),[Indeks])
RETURN
COUNTROWS(FILTER('Table',[Indeks]<__Indeks && [in/out]="in"))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
9 |