Forum Discussion
Table values are getting repeated
- 10 years ago
You should write a measure that produces the 300 regardless of the value in the rows
denominator =calculate(sum(table[gross sales]),all(table[cus]))
then write a measure
=sum(table[gross sales])/denominator
Theres are 2 distinct and different technologies rolled into Power BI
1 is Power Query. It uses a language officially called Power Query Formula Language, developed from "M". I call it PQL (like SQL). Power Query is an ETL tool used to shape data before loading to Power Pivot
2 is power pivot. It is a reporting data base that uses DAX as a language. SUM is an example
you question makes me think is is a good blog post topic. I will post back here once it is done.
Thanks for your reply MattAllington
can you please tell how we gonna differentiate
1. New Column (Reoprt view) where we use new column instead of new measure
2. New Measure (Report view) where we use new measure instead of new column
Actually I have experience with 'New Measures' which are giving me good results but I didn't go for 'New Column' in my reports yet, because I started Power BI a month ago.
It is ok even if u want me to refer a blog, but please help me out with this.
Thanks in advance.
- MattAllington10 years agoCommunity Champion
I always refer to my blog for this question. http://exceleratorbi.com.au/calculated-columns-vs-measures-dax/
generally it is ok to create new columns as long as you know "why" you are doing it over a measure. Also, better to push the column work back to power query or to the source.