Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
DDFS100662
Frequent Visitor

Calculation of a MODE value and issue with alignment scenario

Hello,

I would like to submit to you a case that I have encountered and that I am currently processing in Excel.
The passage in PowerBI will make me gain in speed (several hundreds of thousands of lines to be treated) and will facilitate the sharing with the users (a hundred).

 

I have in my database a stores park with elements related to the product nomenclature and geography.

I put these into filters (segments).

 

Then I have sales data: CA, Qty and average selling price.

 

My objective is the following:
- to determine for each product and with the applied filters (country for example) a MODE value for the average selling price
- calculate then the + / - differences for each store
- simulate the CA + / - stake if the price alignment of the whole on the AVP MODE

 

Bellow is a screen shot that can illustrate all this.

It should be simple but as I said, I am a beginner in DAX and PowerQuery. I tried but it does'nt work and I need any exemple of formula. In advance, thank you for your help !

 

DDFS100662_0-1654146059056.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi @DDFS100662 

The sample you provided has been deleted , can you provide it again ?

Ailsamsft_0-1654668323344.png

 

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Here is a new link

It should work now, sorry.

https://www.dropbox.com/s/fvs2wzqu3cf9qe0/Sample%20PVM%20MODE.zip?dl=0 

Anonymous
Not applicable

Hi @DDFS100662 

Can you provide your sample (in the form of a table or pbix, not a screenshot) and the calculation logic of the [PVM MODE] column? What is the relationship between [PVM MODE] column and [PVM Magasin] column?

Ailsamsft_0-1654497463237.png

Best Regards,
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi

 

Thanx for you interest and for your help. Bellow is a sample of my data and the link to download the pbix file.

https://www.dropbox.com/s/rzth01ifedzp3t9/Sample%20PVM%20MODE.pbix?dl=0

 

I would like to add a new column with a new measure that gives me the 'PVM Magasin' that appears most often for the same product.

 

Be careful cause the same 'PVM Magasin' can occur for many different products (exemple below: 5 appears for products B and C). In that case the measure must analyse un a seperate way for each product...

 

I also want to keep active the selection of the filters (Country, Product).For exemple, find the MODE only for Hungary and Poland, Romania excluded of the analysis.

 

Thank you very much for your help :)))

 

DDFS100662_0-1654505931095.png

DDFS100662
Frequent Visitor

To summarize, my main question is about the DAX formula to be used to calculate the PVM MODE column.

Thanx

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.