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
Hello,
I am attempting to divide 2 rows in the same column. i.e. and receive a percentage of items that hit the "review" activity after the "start" activity?
This could be accomplished on the model itself or via a quick measure on the report itself.
Thank you!
Solved! Go to Solution.
The formula is written for the main PowerBI not Power Query. Do you really need to create the column in Power Query?
I've attached the pbix
You create the column like the below:
Or like this
Heya,
Here is the code:
Forum =
VAR _start = CALCULATE(SUM('Table'[Count]),'Table'[Activity]="Start",ALLEXCEPT('Table','Table'[Office Worker]))
VAR _review = CALCULATE(SUM('Table'[Count]),'Table'[Activity]="Review",ALLEXCEPT('Table','Table'[Office Worker]))
RETURN
IF('Table'[Activity]="Start", BLANK(), DIVIDE(_review,_start))
PS: Format the new column as Percentage and you're good to go
Thank you for the quick reply, I am having some trouble getting it to take!
I get an token eof on the first line?
Thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
168 | |
116 | |
63 | |
57 | |
50 |