The VALUE DAX function is one of the manipulative functions. When presented with a particular table or column, it produces a single-column table of unique values. The duplicates in the table are eradicated, leaving blanks and unique table values behind.
VALUE DAX function Syntax:
The TableName/ColumnName represents the column or table from which the unique values returned have been derived.
When the input parameter passed is the column name. The output is a single-column table that contains unique values from the given column.
When a table name is the input parameter passed. The function returns all unique rows from this specific table while preserving duplicate rows.
When using this function in a context that has been filtered, the outcome is affected by these filters, and to remove this, the ALL function must be used.
How to use the VALUES DAX function
Let’s use an example to explain how the VALUE DAX function works. Jobs is a fact table that has approximately 15-16 data tables.
When a lot of data tables are in a fact table, it becomes complicated to create new measures, especially when a data range is involved.
The image below is the output of the above DAX expression. The outcome shows that there are several data tables, such as received, estimate approved, and started dates, among others.
I would have to create specific measures to establish the number of jobs that have dates in the columns stated in a specified date range.
Measures using the VALUE DAX function
Let’s illustrate how the above measures were derived.
To filter out the fact table, I created two measures; the first is responsible for tallying all jobs containing all three dates (started, estimate approved, and received) for a particular date range.
The second measure was meant to calculate the total estimates.
To conduct the calculations, I incorporated the CALCULATE DAX function and added the COUNTROWS DAX functions to tally the total number of rows in the jobs table.
The goal was to obtain the received date by filtering the results. The image below shows the count of the jobs with the received date, which was equal to or less than the MAX in the given data range.
The function also counts all jobs received whose date is equal to or greater than the MIN date in the date range as indicated below.
The same code can be applied in deriving estimate-approved and started jobs with very few alterations. The formula used for the job count measure is also applied to total estimates. The only difference is that the SUM function is used in this case, as shown below.
Instead of tallying the total number of jobs, the formula will also calculate the total amount of estimates. Every job whose received, approved, and started date fall in the given date range. The output, in this case, would be 57 jobs and 378,031.44 total estimates.
Testing the results
To check whether the results were correct, I created a page referred to as the Testing page, as shown below. This page represents a table that includes; total estimates, started date, estimate approved to date, and received date from the fact table.
To validate the above information, I filtered the date table of the three data tables and used the ALL function to obtain the total estimates, as shown in the image below.
I hope you found this helpful. Read more blogs from DataBear here.
Boniface has a Bachelor degrees in Computer Science and has extensive experience in Microsoft Power Platform (Power BI, Power Automate, Power Apps), Microsoft SQL and SharePoint. He enjoys sharing his knowledge of Power BI functionality to help empower organisation to get great value from Power BI.
We have been working with Johann and Dmitri for almost a year now. From concept to design and implementation, they have been nothing but professional and timely. They leveraged Azure and Power BI to sort and report our point of sales data. We have no reservation when it comes to recommending Data Bear and look forward to our continued partnership.
The DataBear team has been great to work with! They take the time to understand the problem and then put together a real-time solution. It's also great when they responds so quickly! We will continue to work with them!
Fantastic training delivered clearly and effectively. Training was delivered at a pace that reflected our individual abilities and Johan ensured everything was clearly understood before moving on. Would happily recommend!
We had the pleasure of attending the 2 day BI Course. Not was not only very informative, it was made extremely enjoyable by the very knowledgeable Johann who presented in a way we all understood. Highly Recommend anyone looking for some BI training to contact Data Bear
Great Power Bi training in London. A very comprehensive overview of this platform with a thorough agenda, good training materials and a friendly group; Johann is an excellent trainer with a great depth of knowledge and experience in Power Bi. Highly recommended.
DataBear were a pleasure to deal with. We had a 2-day training workshop at our own location, Johann was very knowledgeable, not only delivering a well structured and organised piece of training, but also able to answer questions quickly. Thank you for a superb experience.
Super clear instruction and tutoring by Johann. Great size of group (6) - meant that no-one in the class was left behind, and it seemed those ahead - were not too held back. It is a lot of info to take in for the 2 day course. Would highly recommend the 3 day course where possible! Jon Brown
I recently attended the 2-day Power BI Course run by Johann. This was an intensive and extremely valuable course. Johann is a great instructor, he knows the subject well, and his pace is spot-on. There were many clear and easy-to-follow examples, and the emphasis on practical learning makes this a very worthwhile two days. I would recommend doing the three day course however, as there is so much content and I left wanting just a little more exposure to the final module. Many thanks Johann!
Being new to Power BI I was keen to organise some training for our UK data team. After some Googling I decided on Databear and gave them a call. Johann promptly called me back and we discussed the various training options and we arranged some onsite training to be held at our own offices. Johann provided two excellent days of training, full of knowledge, insight and explanations. With Johann you get right in to using the tool and apply what you are learning as you go. I would highly recommend Johann to anyone interested in learning how to use Power BI correctly and effectively.
I attended the three day PowerBI training course with Johann and found it extremely valuable and insightful. Johann has an excellent knowledge of the subject and the lessons are well structured. I would recommend people take the opportunity to learn and grow their skills through Data Bear .
Data Bear came in to run a two day course on Power BI, the attendees were from various levels of excel experience, but Johann kept the training relevant to all levels and made sure to carry everyone along.
a very good way to start your Power BI journey.
Excellent intensive, small group two-day course - best practise on data modelling was the most valuable section for me as this underpins the success of everything you could possibly want to achieve in Power BI! Highly recommend for those who have go their teeth into Power BI already and want to produce more effective and efficient work but also great for complete beginners as Johann will adapt to suit your needs, even in a mixed group.
I have just attended a 2-day PowerBI course ran by Johann. The course is very comprehensive and intense. I would suggest anyone who plans to attend the course to have some basic idea of PowerBI first. This will make the 2-day less daunting. Having said that, Johann was super helpful and patient both during and after the course. A classroom course beats any online course hands down.
Had a fantastic three days with Johann, and would thoroughly recommend to anyone looking to improve their PowerBI skills. His (and Data Bear's) approach to training is very intuitive and helps with real-life examples. The training was adapted to the areas I required further guidance on which provided a very, very quality experience. Happy to say I will be undertaking further training with Data Bear in the coming months.
Excellent course. Had the pleasure of being tutored by Johann in the 2-day Power BI introduction. By the end of it I was able to go back to work and start producing reports I had hoped to - almost straight away. Highly recommended.
The course was taught by the founder of Data Bear, and I was thoroughly impressed by it. It was taught a fast but engaging pace with several well thought out exercises throughout the 3 days that really helped embed the core subjects Johann was teaching us. I would highly recommend this course to anyone starting off in Power BI who wants to quickly attain a good level of knowledge.
Great course! My colleagues and I had a private 2 day training with Johann. The course was exactly what we were looking for in order to get a solid understanding of PowerBI. He took us from zero to a level where we feel confident enough to start creating our own reports. He was happy to deviate from schedule, answer all our questions and tailor the content based on our needs. Highly recommended!
3 day Power BI Training - Johann is a great instructor and assisted in every aspect to understand the core concepts. It's a great course and would definitely recommend to anyone who wants to learn Power BI.
A very worthwhile investment of time and money. I've been using Power BI for 6 months learning by trial and error. This course really provided the context I needed. Its a very well structured and hands-on course. My only regret is that I didn't sign up for the full 3 days as there was stuff in the 3rd day which would have been beneficial too.
Very well structured course that provided all the building blocks to be able to master PBI. Would highly recommend. The instructors were also very willing to help me outside of the lessons with any questions relating to projects i was working on. If you want to save a lot of time when starting out with PBI, this course will teach you all the fundamental best practice techniques you should be using.
My firm recently contracted Data Bear to improve our implementation of Power BI embedded. Their engineers have a very high level of technical acumen, and had experience in several different technologies. I would highly recommend their services.
Outstanding private training from Data Bear, can highly recommend for anyone that needs some comprehensive tuition on Power BI - great company who were adaptive to my needs and very limited experience in this area.