Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have an excel file which is now to big for excel that we want to migrate to PBI. But as a newbie on PBI I have no clue on how to manage something that was pretty easy in excel in PBI.
In excel a formula allows to easily count the number of cells that contains a figure, in PBI we can't.
For each day, we need for each car divide the milage of each name by the number of time the car brand is used.
Thanks in advance for your help.
Hi @TheBaz_57 ,
You could create a measure to get the counting.
Count =
CALCULATE (
COUNT ( 'Table'[Milage] ),
FILTER (
ALLSELECTED ( 'Table' ),
[Car] = MAX ( 'Table'[Car] )
&& [Date] = MAX ( 'Table'[Date] )
)
)
Then you can calcualted the divided values.
Divided =
DIVIDE ( SUM ( 'Table'[Milage] ), [Count] )
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the reply, maybe I wrongly described what I needed.
Here Chevy appears 5 times.
And hence as per your calculation
But instead, I want that each appearance count 1. No matter is it was used several ime by same name.
So I would need to have a total of 3 for chevy on 01/11.
I have tried several methods, with countdistinct, etc but couldn't get what I needed 😫
hi @TheBaz_57 ,
in this case try to use the measure
COUNTROWS('Table')
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @TheBaz_57 ,
you can try this measure:
DIVIDE(
SUM('Table'[Milage]),
CALCULATE(
COUNTROWS('Table'),
ALL('Table'[Name])
)
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |